Android scrollbar width

In my application, the scrollbar is too skinny to use. Does anyone know how to change the width of this?

0
source share
2 answers

Looking around the platform resource files, I found this in res / values ​​/themes.xml in the main topic:

<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 drawings for scrollbars.

I wonder what you mean because they are "too skinny to use." They should not be touched / dragged. They are intended to be displayed to show you the current position relative to the entire ScrollView.

+3
source

Instead of creating your own theme dedicated to your ScrollView, you can set the android:scrollbarSize .

 <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbarSize="2dp" /> 
0
source

Source: https://habr.com/ru/post/1306700/


All Articles