指示器元件之间的空间 [英] Space between elements of the indicator
本文介绍了指示器元件之间的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何增加/减少 ViewPagerIndicator
推荐答案
我用CirclePageIndicator。我能够做的第二步指标之间更多的空间:
1.打开CirclePageIndicator源$ C $ c和找到变量mRadius
2.在235左右的行号,你会发现这样一行如下:
I have used CirclePageIndicator. I was able to make more space between two indicator by the step: 1. Open the source code of CirclePageIndicator and find the variable mRadius 2. At the line number around 235, you will find a line like below:
final float threeRadius = mRadius * (some value here)
3。更改此一定的价值,并使用它。我用5我的情况,它给了我一个很好的结果。
3. Change this some value, and play with it. I used 5 for my case, it gave me a good result.
希望它可以解决你的问题。
Hope it solved your problem.
这篇关于指示器元件之间的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文