Android - 如何在两个标签 TextViews 之间找到标签指示器? [英] Android - How can I locate the tab indicator between the two tab TextViews?
问题描述
据我所知,有 ViewPager
和 ActionBar
组件可以支持标签导航"模式,但它们在标签之间没有中间标签指示器,只是仅定位在标签 TextView
下方.
Google Play 应用如何实现此功能:POSITIONING 与过渡相关联?
你可以通过实现 android:actionBarTabStyle
使用 ActionBarSherlock 库.p>
更新:
我对此并不完全了解,但希望您知道 Android 团队已经在 I/O 2013 Android 应用程序中集成了相同的模式,并且很快就会开源.
更新 2:
我刚刚遇到一个可以满足您要求的库,请查看:https://github.com/astuetz/PagerSlidingTabStrip
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 ?
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
这篇关于Android - 如何在两个标签 TextViews 之间找到标签指示器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!