0

I have a problem with scrollbar. I create a TextView in xml and enable vertical scrollbar. I have also define custom thumb thanks to

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

I run this on Android 4.0.3 and everything wrok fine, but when I am running it on Android 2.3.6 the thumb stretch to parent size ( textview size ) and covert it. What is weird is when I set default scrollbar ( my custom thumb will be removed ) everything work fine. How can I it work fine fith default scrollbar and with custom not?

4

1 回答 1

0

我将“@color/blue”替换为“@drawable/blue”,它工作正常。

于 2012-11-15T18:24:43.847 回答