Dot (.) instead of Swipe tab [closed]

℡╲_俬逩灬. 提交于 2019-12-04 17:33:54

问题


i am implementing view pager and i want to put dot(.) in the bottom instead of swipe tab. how can i do that.Thanks for help

Instead of this

i want to do like this


回答1:


Jake Wharton provides a lot of examples. Have you check it?

And you can take a preview installing this APK.




回答2:


Stinepike's answer is more appropriate for tabs.
But I think what you are trying to achieve can be done by ViewPager and Its more appropriate way considering you don't want to display the names of tabs like "tab1", "tab2" etc... but only the indicators (dots, .) In that case use viewpagerindicator with ViewPager.
Using tabs names and indicator will be an overhead and not a proper design for an Android application.
Its an open source library
Follow the instructions from this page
https://github.com/JakeWharton/Android-ViewPagerIndicator/



来源:https://stackoverflow.com/questions/20866201/dot-instead-of-swipe-tab

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