I am observing new behavior in Android 6.0 Marshmallow. The touching area of ββthe scrollbar is larger than the scrollbar. This can be seen in the following screenshot. The scrollbar has 20 dp (green area), and the touch zone is probably 48 dp (blue and green area). I would like the touch area to be above the scrollbar:

I am using the following:
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="MyTheme.Dark" parent="android:Theme.Black"> <item name="android:fastScrollStyle">@style/Widget.FastScroll</item> <item name="android:scrollbarThumbVertical">@drawable/dark_scrollbar_thumb</item> <item name="android:scrollbarTrackVertical">@drawable/dark_scrollbar_track</item> <item name="android:scrollbarSize">4dp</item> <item name="android:fastScrollThumbDrawable">@drawable/dark_scrollbar_fast_thumb</item> <item name="android:fastScrollTrackDrawable">@drawable/dark_scrollbar_fast_track</item> </style> <style name="Widget.FastScroll" parent="android:Widget.Material.FastScroll"> </style> </resources>
dark_scrollbar_fast_thumb.xml:
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape> <size android:height="30dp" android:width="20dp" /> <solid android:color="@android:color/transparent" /> </shape> </item> <item android:left="8dp" android:right="8dp"> <shape> <size android:height="30dp" android:width="4dp" /> <solid android:color="@color/dark_secondary" /> </shape> </item> </layer-list>
dark_scrollbar_fast_track.xml:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <size android:width="@dimen/1dp" /> <solid android:color="@color/dark_scrollbar_track" /> </shape>
dark_scrollbar_fast_thumb.xml:
<item> <shape> <size android:height="30dp" android:width="20dp" /> <solid android:color="@android:color/transparent" /> </shape> </item> <item android:left="8dp" android:right="8dp"> <shape> <size android:height="30dp" android:width="4dp" /> <solid android:color="@color/dark_secondary" /> </shape> </item>
dark_scrollbar_fast_track.xml:
<size android:width="@dimen/1dp" /> <solid android:color="@color/dark_scrollbar_track" />
A quick scrollbar is always visible, and I use the following style in my watchlists:
<item name="android:scrollbarStyle">outsideInset</item>
But the result is more like outsideOverlay. I can only observe this problem on Marshmallow devices.
I would like to find the attribute that calls it and change it from 48dp to 20dp. Could you help me?