Scrollable tabs style in Android

怎甘沉沦 提交于 2019-12-14 02:02:01

问题


I'd like to implement a navigation with two layers of tabs, similar to this one:

However I cannot find how to give scrollable tabs this appearance: centered title for the active tab, and the others pushed to the sides, without separator or underlining. I'm pretty sure I've seen this scrollable tabs style before, so I was wondering if it's just a setting or maybe a third party library.

Could anyone help me with this ?

Thank you.


回答1:


Have a look at ViewPager's PagerTitleStrip. That's what you are looking for.



来源:https://stackoverflow.com/questions/21911953/scrollable-tabs-style-in-android

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