Android smoothScrollBy behaving badly

sometimes it will be because of the timing issue. When the views are added to your listview and the time you do

view.smoothScrollBy(distance, time);

the listview or the ui still need not get refreshed. So do this in the views post thread with a specific delay. Eg.

view.postDelayed(new Runnable{
    view.smoothScrollBy(distance, time);
},1000);

Leave a Comment