androidandroid-viewpagerandroid-tabsviewpagerindicatorpagerslidingtabstrip

android twitter app, custom viewpager tabs how


The twitter app for android has customized viewpager tabs, how is this done? The Text sits above a small center dotthat appears when there is something new in each respective tab.

I know how one might do this with ACTION BAR tabs, but the problem with action bar tabs is that in landscape mode they move to the actual action bar. Viewpager tabs do not do this.

I have dealt with some Viewpager titling libraries, but I'm unclear how this would be done


Solution

  • One answer is to use a third party library like PagerSlidingTabStrip , or a fork of that which allows putting any drawable in the tab