Created
September 19, 2013 11:49
-
-
Save laaptu/6622267 to your computer and use it in GitHub Desktop.
ListView smooth scroll to certain position
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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