I have a chat like listView
mBlockingListView.setStackFromBottom(true);
mBlockingListView.setTranscriptMode(AbsListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
or
mBlockingListView.setTranscriptMode(AbsListView.TRANSCRIPT_MODE_NORMAL);
it depends, but it doesn't have any influense
And when I get 20 more items, insert it in SQLiteDB, then swap cursor, I have to save a listView scroll position. Tnaks to Chris, I know how to do this
http://chris.banes.me/2013/02/21/listview-keeping-position/
but my adapter make one little thing, that spoils all my life. When I swap cursor and restore the scroll position of a listView, I see such a weird behavior:
my adapter gets views for 0-9 position and then starts to get the proper views with positions 380 and less. I have a workaround in my endlessAdapter, but is there any proper way of solving this problem. How can I prevent my adapter from getting the wrong position views when populating data from a cursor. Thanks!
0 comments:
Post a Comment