Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SeekBar's progressBackgroundTint has no effect in API v21

I'm noticing that when changing my SeekBar's progressBackgroundTint attribute, it gets completely ignored and has no effect. It doesn't matter what color I set it to; it always shows as gray on my device. Is this a bug with Android, or am I doing something wrong? When I switch the preview in Android Studio to v22, it gets properly set. But not so on v21.

My seekbar:

<SeekBar
    android:layout_width="300dp"
    android:layout_height="wrap_content"
    android:id="@+id/seekBar"
    android:max="100"
    android:progress="50"
    android:progressBackgroundTint="#ff4babe8"/>

I also tried setting progressBackgroundTintMode to all the known values, but still no effect. Anyone know why?

like image 759
baekacaek Avatar asked Nov 02 '15 20:11

baekacaek


1 Answers

Try this library. It works great simple https://github.com/ahmedrizwan/SeekBarCompat

like image 142
Emmanuel Guther Avatar answered Oct 25 '22 08:10

Emmanuel Guther