Android的 - 我怎样才能找到两个选项卡TextViews的标签指示? [英] Android - How can I locate the tab indicator between the two tab TextViews?
问题描述
据我所知,有分量 ViewPager
和动作条
可以支持标签导航模式,但他们没有在标签之间的中间选项卡指示器,仅仅只定位低于标签的TextView
。
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
.
在谷歌如何Play应用实现了这个功能:定位与转型链接
How the Google Play app implemented this feature: POSITIONING linked with transition ?
推荐答案
您可以通过实施<一个实现这一目标href="http://developer.android.com/reference/android/R.attr.html#actionBarTabStyle"><$c$c>android:actionBarTabStyle$c$c>使用 ActionBarSherlock 库。
我没有想法正是这一点,但是希望你知道Android团队还集成了同样的模式在I / O 2013的Android应用程序,它就会打开很快来源。
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.
我只是碰到一个库能满足您的要求,检查:<一href="https://github.com/astuetz/PagerSlidingTabStrip">https://github.com/astuetz/PagerSlidingTabStrip
I just came across one library which can fulfill your requirement, check this: https://github.com/astuetz/PagerSlidingTabStrip
这篇关于Android的 - 我怎样才能找到两个选项卡TextViews的标签指示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!