Skip to content

Instantly share code, notes, and snippets.

@laaptu
Created September 19, 2013 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laaptu/6622267 to your computer and use it in GitHub Desktop.
Save laaptu/6622267 to your computer and use it in GitHub Desktop.
ListView smooth scroll to certain position
//Keep in mind the position should be actual size of ArrayList not ArrayList size -1
chatListAdapter.notifyDataSetChanged();
listView.getListView().postDelayed(new Runnable() {
@Override
public void run() {
listView.getListView().smoothScrollToPosition(
messageItemList.size());
}
}, 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment