Runnable runnable=new Runnable() {
@Override
public void run() {
scrollView.fullScroll(ScrollView.FOCUS_DOWN);
}
};
scrollView.post(runnable);
call these lines every time after adding your view to the layout. This will initialize the Runnable once.
source
share