Android ListView that scrolls from bottom to top? -


i'd build listview works normal listview, except first item on bottom , grows up, instead of first item being on top , growing down.

of course, can use normal listview, reverse order of adapter, , have scroll last item on list... inelegant in number of ways, particularly when adding new rows.

for instance, listview remember position, position bottom instead of top. so, if @ bottom, should remain @ bottom, if looking 3 bottom, should still looking @ item when new item added. (exactly how works in listview normally, reversed.)

wondering if has clever tricks reverse polarity of android listview?

the classic use case list of chat messages, recent 1 on bottom, , items added bottom. if @ end of list, still want @ end of list when new message comes in. if have scrolled away bottom, don't want scroll position randomly reset.

ah, abslistview has attribute:

android:stackfrombottom="true"

which seems wanted.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -