I am trying to change the scrollbar width of a ListView without success
<ListView android:id="@+id/android:list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:choiceMode="singleChoice" android:scrollbars="vertical" android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track" android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb" android:scrollbarSize="4px" android:clickable="true"/>
At first I tried using a stretchable image of 4 pixels, but .png was changed. Then I tried to use the form extracted from SamplesApi, without success.
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:width="40px"> <gradient android:startColor="#505050" android:endColor="#C0C0C0" android:angle="0"/> <corners android:radius="0dp" />
I tried with and without the android: width attribute.
There is a question on the same topic ( Scrollbar width in android ), but it is not trying anything else than what I'm already trying. As far as I know, the creation of my theme should not change.
Here is an example in SamplesApi (Views / ScrollBars). I tried changing the scrollbarSize attribute with no result.
I know about ninefold images, but there is an attribute that should do what I want.
Any hint? Thanks in advance.
source share