Slide tab bar like in android market [closed]

大兔子大兔子 提交于 2019-11-29 01:10:50

问题


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!


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/8502988/slide-tab-bar-like-in-android-market

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!