gustav12
gustav12

Reputation: 327

Scrolling viewpager with sticky TabStrip header

I have an activity layout in which I have a viewpager that contains a couple of fragments. One of the fragment holds a listview (image sample attached).

What I'm trying to do is to scroll the listview and stick the TabStrip to the top of the layout, so when you are scrolling the list, the viewpager's fragment titles are always visible but you can see the entire listview content.

Above the viewpager there are views that needs to scroll up when the listview is scrolling.

Is any way to achieve this?

I've tried with scrollview and placing the viewpager inside it, but it doesn't work because the viewpager doesn't display at all.

Please help!

enter image description here

Upvotes: 1

Views: 2359

Answers (1)

gustav12
gustav12

Reputation: 327

i've found the solution by using this nice library from github!!!

noties/Scrollable

Upvotes: 2

Related Questions