I have a layout in my head that should look like that: https://i.stack.imgur.com/1UbUN.png
Only part that will be dynamic is the blue one. I don't know the number of tabs that will be created before I load the activity, hence the number is acquired from server (could be either 5 or 24 for all I know).
The bottom buttons should not move when I swipe and the blue area changed.
Currently I have this implemented w/o tabs list using embedded fragment in my activity and gesture listener. There's no good looking transaction animation between fragments.
@Nick Pakhomov: You can use PagerTabStrip
PagerTabStrip
is intended to be used as a child view of a
ViewPager widget in your XML layout
. PagerTabStrip is most often used with fragment, which is a convenient way to supply and manage theLifecycle of each fragment
.So here’s how a ViewPager with a PagerTabStrip in it would look like in the layout file:
Please check this PagerSlidingTabStrip demo . I hope it will helps you .