I have a ListActivity with obviously a ListView on it. This ListView consists of different sections, each of them have a header.
When I display the list of items to the user, first header is on top. If user scrolls, header is hidden and rest of items are displayed. I know how to make that simple header static, always on top, but what i want now, is to have last displayed header always on top.
Last version of GMail is a good example of what i want. While on a message, if you scroll, you will always see that message header on top. If you keep scrolling and go to next message, when that new message header is about to disappear because of the scrolling action, it will replace the current static header, so that user will have always current message's header on top, as a floating panel.
Is there any example out there, or some guidance about how to implement this?
Thanks!