宽度在Android的滚动条 [英] Width of a scroll bar in android
问题描述
在我的应用程序的滚动条就是太瘦使用。没有人知道如何改变这个宽度是多少?
In my application scroll bar is just too skinny to use. Does anyone know how to change the width of this?
推荐答案
环顾平台资源文件,我发现这个水库/价值/下的主要题材的themes.xml:
Looking around in the platform resource files, I found this in res/values/themes.xml under the main Theme:
<item name="scrollbarSize">10dip</item>
<item name="scrollbarThumbHorizontal">@android:drawable/scrollbar_handle_horizontal</item>
<item name="scrollbarThumbVertical">@android:drawable/scrollbar_handle_vertical</item>
因此,它看起来如果你创建自己的主题一样,如描述文档,您可以提供自己的可绘制的滚动条。
So, it looks like if you create your own Theme, as described in the documentation, you can provide your own drawables for the scrollbars.
我不知道你的意思是,他们都是太瘦了使用。他们注定不会被触及/拖动。这意味着它们是用于显示,向您展示您的当前位置相对于整个滚动型。
I do wonder what you mean by they are "too skinny to use". They aren't meant to be touched/dragged. They are meant for display, to show you your current position relative to the entire ScrollView.
这篇关于宽度在Android的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!