Tinting ProgressBar

suggest change

Using an AppCompat theme, the ProgressBar’s color will be the colorAccent you have defined.

To change the ProgressBar color without changing the accent color you can use theandroid:theme attribute overriding the accent color:

    style="@style/Widget.AppCompat.ProgressBar" />

<!-- res/values/styles.xml -->
<style name="MyProgress" parent="Theme.AppCompat.Light">  
    <item name="colorAccent">@color/myColor</item>

To tint the ProgressBar you can use in the xml file the attributes android:indeterminateTintMode and android:indeterminateTint


Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents