I've set progress bar tint in XML, but it isn't working on API 21 (Android 5.0)
<ProgressBar
android:layout_width="match_parent"
android:layout_height="5dp"
style="@android:style/Widget.ProgressBar.Horizontal"
android:progressTint="@color/blue"/>
The tint is the default yellow colour on API 21, but is correctly blue on API 22 and above.
According to the docs, the corresponding set method setProgressTintList
was introduced in API 21, so I don't understand why this doesn't work. (My minimum API version is 21 so I don't need to worry about lower versions.)