1. If your scrollbar is vertical, set the following properties
android:scrollbarThumbVertical="@drawable/scrollbar_indicator"android:scrollbarTrackVertical="@drawable/scrollbar_bg"
2. If your scrollbar is horizontal, set the following properties
android:scrollbarThumbHorizontal="@drawable/scrollbar_indicator"android:scrollbarTrackHorizontal="@drawable/scrollbar_bg"
Android:scrollbarthumbvertical and Android:scrollbarthumbhorizontal set a picture of the scroll bar indicator, which slides as it slides;
Android:scrollbartrackvertical and Android:scrollbartrackhorizontal set the scroll bar background.
It is important to note that:
A, the attribute must be a picture, can not directly set the color value;
b, the indicator will change the height according to the number of item, so it is recommended that the custom picture be made point nine (. 9)
Android Custom scroll bar (ScrollBar) style