Search code examples
androidlayouttabsactionbarsherlockadapter

Youtube ActionBar Tabs like


I'm pretty familliar with ActionBarSherlock and ViewPager but what i would like to do is having something between Tabs and ActionBar.

[-------ActionBar------------------]
[-------SomeLayout-----------------]
[-------Tabs-----------------------]
[-------TabContent/ViewPager-------]
[----------------------------------]
[----------------------------------]
[----------------------------------]
[----------------------------------]
[----------------------------------]
[----------------------------------]
[----------------------------------]
[----------------------------------]
[-------SomeFooter/pub-------------]

Is there some other library i could use to achieve that ?


Solution

  • Use a PagerTabStrip, TabPageIndicator (from the ViewPagerIndicator library), PagerSlidingTabStrip, or something similar for the tabs for your ViewPager. You are then welcome to put something else above those via a vertical LinearLayout.