Android: Scrolling to the bottom of a ScrollView

Iv’e had a lot of trouble scrolling a ScrollView all the way to the bottom in android and I finally got the way to do it ! Here is the code:

scrollView.post(new Runnable() { 
     public void run() {
         scrollView.fullScroll(View.FOCUS_DOWN);
     }
 });

Hope it helps somebody !

Menu