lawloretienne / QuickReturn

Showcases QuickReturn UI Pattern as either a header, footer, or both header and footer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

listview header glitches a bit when scrolling up from a listview w/ different sized items

kenyee opened this issue · comments

With a listview set to start at the bottom:
listView.setStackFromBottom(true);
listView.setTranscriptMode(AbsListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);

and with different sized listview items, when you scroll up, the header will pop down and up randomly even though you're going in the same direction. I think it's trying to calculate the position based on the size/height of the listview items (related to how the scroll bar thumb changes size when you scroll in a list w/ items of a different height).

UPDATE: looks like it's because of the bottom up listview...I can scroll all the way to the top and then scroll back down and it works as expected. Still a bug though :-P
The use case is that a chat stream is in the listview. That's why the listview starts at the bottom and goes to the bottom whenever it's updated. Another bug is that the quickreturn header disappears if you update the listview by adding/deleting an item.

I have this issue too, when list items have different height header&footer pops randomly. How to fix this?

Someone found a solution about this ?