how to change color of the actual scroll in ScrollView android?

Viewed 50160

I'm wondering if it's possible to change the color of the ScrollView.

I'm not referring to the background color or the edges.
I attached a print screen of the bar I'm referring. For me, it's kind of transparnt.

Here's how I defined it in the xml:

<ScrollView  
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:fadeScrollbars="false"
    android:layout_toLeftOf="@+id/personalscores_BackButton" 
    android:layout_marginRight="0dp" > 

scroll bar

5 Answers

The question is: "how to change color"

The only correct answer is one! code line in your layout:

android:scrollbarThumbVertical="@android:color/white"

Thats all!

p.s. The question is simple: "color"! and the answer is very simple too. Not a: "how to set custom bar", "how to change bar sizes" or etc. Why so many long answers...

Related