自定义视图ViewPager指标 [英] Customizing ViewPager view indicator
本文介绍了自定义视图ViewPager指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Android的开发新手,我的工作实现ViewPager一个应用程序。现在,我想知道是否有定制一点点在layout.xml文件的标签的方法。我所试图做的是要调整选项卡和改变指示剂的颜色(蓝色的Jellybean)。谢谢!
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!
推荐答案
您应该编辑名为九宫格的PNG vpi__tab _ ??? _全息
。有其中6对每个屏幕密度。
You should edit nine-patch PNGs named vpi__tab_???_holo
. There are 6 of them for each screen density.
这篇关于自定义视图ViewPager指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文