Android: ScrollView force to bottom


Question

I would like a ScrollView to start all the way at the bottom. Any methods?

1
173
9/13/2012 2:21:36 PM

Accepted Answer

scroll.fullScroll(View.FOCUS_DOWN) also should work.

231
6/20/2010 6:41:55 PM

you should run the code inside the scroll.post like this:

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

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon