Customizing ViewPager view indicator

守給你的承諾、 提交于 2019-12-12 01:23:10

问题


I am a newbie in Android Development and I am working on a application that implements ViewPager. Now, I would like to know if there is a way to customize a little bit the tabs in the layout.xml file. What I am trying to do is to resize the tabs and change the color of indicator (Jellybean blue). Thank you!


回答1:


You should edit nine-patch PNGs named vpi__tab_???_holo. There are 6 of them for each screen density.



来源:https://stackoverflow.com/questions/17757431/customizing-viewpager-view-indicator

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