Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Listview Floating First Row

I'm trying to find the best way to approach implementing Facebook like floating row on list view

status, photo,checkin

when scrolling down, the status-photo-checkin disappear to allow more space for the list, and when scrolling up it appears again. anyone has an idea how can I implement this or direct me to an existing component/library?

like image 602
Ranco Avatar asked Mar 17 '13 18:03

Ranco


2 Answers

It's called the Quick Return pattern, and Roman's explained it in detail along with an example here:

https://plus.google.com/u/0/+RomanNurik/posts/1Sb549FvpJt

like image 92
strange Avatar answered Nov 01 '22 13:11

strange


You can find implementations at these two pages:

  • https://github.com/LarsWerkman/QuickReturnListView
  • https://github.com/ManuelPeinado/QuickReturnHeader

And I suggest you to read the following blog post which discusses when to use and not to use this ui pattern: http://www.androiduipatterns.com/2012/08/an-emerging-ui-pattern-quick-return.html

like image 24
Muatik Avatar answered Nov 01 '22 11:11

Muatik