문제

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 ?

enter image description here

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top