Android - How can I locate the tab indicator between the two tab TextViews?

不想你离开。 提交于 2019-11-30 03:32:40

问题


As far as I know, there are components ViewPager and ActionBar can support "tab navigation" mode but they don't have intermediate tab indicator between the tabs, just only positioning below a tab TextView.

How the Google Play app implemented this feature: POSITIONING linked with transition ?


回答1:


You can achieve this by implementing android:actionBarTabStyle using ActionBarSherlock library.

Update:

I don't have idea exactly about this, but hope you know Android team has integrated the same pattern in I/O 2013 Android app and it will open sourced soon.

Update 2:

I just came across one library which can fulfill your requirement, check this: https://github.com/astuetz/PagerSlidingTabStrip



来源:https://stackoverflow.com/questions/16475454/android-how-can-i-locate-the-tab-indicator-between-the-two-tab-textviews

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!