Bad0
Bad0

Reputation: 133

ListView with moving header?

I want to create listview with header which move with listviews scrolling. I tried it :

ViewGroup listviewheader = (ViewGroup) inflater.inflate(R.layout.listview_header , list1,false);
list1.addHeaderView(listviewheader);

But it only appears when user rise to top of the listview. I want that when user rise a little bit (everywhere in listview) then the header appear in top. How can i do it?

Upvotes: 0

Views: 129

Answers (2)

Bad0
Bad0

Reputation: 133

https://github.com/felipecsl/QuickReturn

-- Quite easy and useful implementation

Upvotes: 0

marmor
marmor

Reputation: 28229

Check this library: https://github.com/ManuelPeinado/QuickReturnHeader

"A ListView/ScrollView header that hides when scrolling down and reappears immediately when scrolling up, regardless of how far down the list we've gone. Like the one from the Google Keep app."

Upvotes: 1

Related Questions