android:scrollbarThumbVertical will work fine. But if fastscroll is enabled in listView , you must define android:fastScrollThumbDrawable in AppTheme or any theme and use it for activity (in AndroidManifest ) that contains listview with fastscroll enabled.
The styles.xml part
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="colorAccent">@color/colorAccent</item> <item name="android:fastScrollThumbDrawable">@drawable/fast_scrollbar_vertical</item> </style>
part of the manifest
<activity android:name=".ListActivity" android:label="@string/title_activity_list" android:theme="@style/AppTheme" />
and the allowable scrollbar width should be gradient
<shape xmlns:android="http://schemas.android.com/apk/res/android" > <gradient android:angle="45" android:endColor="@color/scroll_color" android:centerColor="@color/scroll_color" android:startColor="@color/scroll_color" /> <corners android:radius="8dp" /> <size android:width="8dp" android:height="100dp"/> <padding android:left="0.5dp" android:right="0.5dp" /> </shape>
source share