Get Listview Item Position After Soft Keyboard Shown
I have a ListView, it is under action bar and above an EditText. See picture: The list view items have random height according to its content. When click list view item, I need to
Solution 1:
You dont have to use the screen height to scroll the listView. You could use ListView's smoothScrollToPosition(int position) to scroll to a particular location in the list.
Solution 2:
commentsListView.setSelection(clickedPosition + 1);
, got it, simply this works for me, although it has no animation (not smooth), it is good enough for me, for making the smooth scroll to position, use this answer [link]smoothScrollToPositionFromTop() is not always working like it should
Post a Comment for "Get Listview Item Position After Soft Keyboard Shown"