Skip to content

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

@kenyee

Description

@kenyee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions