views:

80

answers:

1

Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView?

+2  A: 

Check out the ApiDemos sample project in the SDK. The layout res/layout/scrollbar2.xml shows a way to style scroll bars.

There are separate attributes for the scrollbar track and the scrollbar thumb. Size can also be adjusted.

adamp
Good sir, I salute you! For other people searching the same answer: Just do android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb" and let scrollbar_vertical_thumb be a gradient :)
sandis