Search code examples
javaandroidandroid-layoutandroid-listviewandroid-tabhost

How do you put tabs under another layout similar to the Google+ app? (Example Pic Incuded)


I want to implement something simlar to this Google+ layout. The page scrolls until the tabs at the bottom hit the top. Then the list view in the tabs scroll. Does anyone have an idea to do that? (The tabs should still be visible but the content inside scrolls.)

Please don't hesitate to ask for clarification.

Any help is appreciated. Thanks.

Tabs


Solution

  • If you were to use uiautomatorviewer to examine that app, I suspect that you will find that the tabs are a tabbed indicator for a ViewPager. PagerTabStrip is one that ships with the Android Support package, the ViewPagerIndicator library has another, and there are still more floating around out there. Such a tab strip can be placed pretty much anywhere.