Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:25:47+00:00 2026-05-28T16:25:47+00:00

Why isn’t my Scrollview automatic scrolling? I don’t get it.. it just doesn’t move…

  • 0

Why isn’t my Scrollview automatic scrolling? I don’t get it.. it just doesn’t move…

package com.lernapp.src.Activities;

import java.io.IOException;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.media.AudioManager;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.PopupWindow;
import android.widget.ScrollView;
import android.widget.TextView;

import com.lernapp.src.R;
import com.lernapp.src.Database.DbConfig;
import com.lernapp.src.Database.LernAppOpenHelper;

public class StartMenu extends Activity {

    private ScrollView scroller;
    private TextView text;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.startmenu);

        setVolumeControlStream(AudioManager.STREAM_MUSIC);
        Button infoButton = (Button)findViewById(R.id.startmenubutton4);

        infoButton.setOnClickListener(new View.OnClickListener() {          
            public void onClick(View v) {

                LayoutInflater inflater = (LayoutInflater)StartMenu.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                final PopupWindow pw = new PopupWindow(
                   inflater.inflate(R.layout.infopopup, null, false), 
                   300, 
                   400, 
                   false);

                pw.setBackgroundDrawable(new BitmapDrawable());    
                pw.setOutsideTouchable(true);               
                pw.showAtLocation(findViewById(R.id.startmenumain), Gravity.CENTER, 0, 0);

                View view = inflater.inflate(R.layout.infopopup, null, false);

                scroller = (ScrollView)view.findViewById(R.id.scroller);
                text = (TextView)view.findViewById(R.id.scrolltext);

                scroller.post(new Runnable() { 
                    public void run() { 
                        scroller.smoothScrollTo(0, text.getBottom());
                    } 
                });

            }
        }); 

    }   
}

and popupxml:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:padding="10dip"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#000000"
    android:id="@+id/scroller">

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginTop="10dip"
        android:text="test\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\n "
        android:color="#FFFFFF"
        android:id="@+id/scrolltext"/>

</ScrollView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:25:48+00:00Added an answer on May 28, 2026 at 4:25 pm

    Why not only use a TextView, it can scroll horizontally.

    android:elippsize="marquee"
    android:scrollHorizontally="true"
    android:focusable="true"
    android:focusableInTouchMode="true"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Isn't a pointer just a reference when you don't de-reference it? #include stdafx.h #define
Why isn't this working? ---HTML-------- <html> <head> <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js></script> <script type=text/javascript src=j.js></script> </head>
Isn't there a CSS way of having the page to get a border around
Isn't there some way to re-write the following code, such that I don't need
Isn't it possible to get an event when the GC begins? I want to
Isn't this one automatically put by the compiler if I don't put it in
php isn't really my thing but I would need to get the votes and
Isn't 1.8.1 the latest version of Javascript? Why is https://developer.mozilla.org/en/JavaScript just giving you api
Isn't the use of delegates to help with some asynchronous cases? I tried the
Isn't there a way with Hibernate to return a list of (primitive) values from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.