Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Scrollview start at the bottom

Is there anyway I can make a Scrollview start on bottom? I tried to:

post(new Runnable() {
        @Override
        public void run() {
            fullScroll(ScrollView.FOCUS_DOWN);
        }
    });

And also setting the android:focusableInTouchMode="true" on the lowest element in the layout.

But I can see it scrolling to the bottom sometimes. The idea is to make it imperceptible to the user.

Thanks a lot.

like image 690
gusgol Avatar asked Jan 30 '26 09:01

gusgol


1 Answers

try with scrollView.fullScroll(View.FOCUS_DOWN)

like image 141
Jorgesys Avatar answered Feb 01 '26 23:02

Jorgesys



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!