Android的 - 我怎样才能找到两个选项卡TextViews的标签指示?选项卡、指示、两个、标签

2023-09-06 01:49:46 作者:图、忘却沵╮

据我所知,有分量 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 ?

推荐答案

您可以通过实施android:actionBarTabStyle使用 ActionBarSherlock 库。

我没有想法正是这一点,但是希望你知道Android团队还集成了同样的模式在I / O 2013的Andr​​oid应用程序,它就会打开很快来源。

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.

我只是碰到一个库能满足您的要求,检查:https://github.com/astuetz/PagerSlidingTabStrip

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

 
精彩推荐
图片推荐