Answer the question
In order to leave comments, you need to log in
How to disable automatic scrolling of ListView?
There is an application, in it ListView. New rows are often added to this ListView and it scrolls automatically. As a result, reading is sometimes quite stressful ... How can I stop automatic scrolling so that only the user can scroll the list manually?
Answer the question
In order to leave comments, you need to log in
listView.setScrollContainer(false);
or
listView.setOverScrollMode(View.OVER_SCROLL_NEVER);
m?
stackoverflow.com/questions/7637239/disable-scrolling-in-listview-on-refresh
Before adding to the list, do this:
Parcelable state = list.onSaveInstanceState();
list.onRestoreInstanceState(state);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question