Does anyone know how to implement the bar like in android market (Categories, featured, top paid...) I've also seen it in the new version of SuperUser so i know it can be done. Thank you for your responses!
Asked
Active
Viewed 1.3k times
6
-
2ViewPager from v4 compat library + fx: https://github.com/JakeWharton/Android-ViewPagerIndicator – Selvin Dec 14 '11 at 10:43
-
Thank you! That was it, I didn't know it was called ViewPager. – Noureddine AMRI Dec 14 '11 at 10:53
-
https://developer.android.com/samples/SlidingTabsBasic/index.html - how to do it in the google manier – Arkadiusz Cieśliński Mar 02 '15 at 10:34
2 Answers
10
Thanks to Selvin for the response.
See as suggested: https://github.com/JakeWharton/Android-ViewPagerIndicator
or this for a quick tutorial: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

Noureddine AMRI
- 2,942
- 1
- 21
- 28
1
Jake Wharton's Android-ViewPagerIndicator is a good option, but it doesn't support underline bar movement like below images(you can see what "underline bar movement" is as video at here).
I think Astuetz's PagerSlidingTabStrip is an another good option for this regard, since it gives more natural and interactive user experience.
This implementation is available at Github. See: https://github.com/astuetz/PagerSlidingTabStrip
Also you can download sample app at Play Store.

김준호
- 15,997
- 9
- 44
- 38
-
"it doesn't support underline bar movement", is there's any way to support the underline movement using Jake Wharton's ? – ralphgabb Dec 02 '14 at 06:01
-
1@ralphspoon AFAIK, there isn't. You can find it by checking their source code. – 김준호 Dec 03 '14 at 06:46
-
1yeah thanks, guess I'll stick with slidingtabstrip, thanks though :) – ralphgabb Dec 03 '14 at 06:54
-
Also, I found a good "official" sample here, https://github.com/googlesamples/android-SlidingTabsColors. – 김준호 Dec 26 '14 at 04:45