1

Basically i have a circular progress bar and i have set a style to it, but the color does not change at all, its just green the whole time.

Code:

               <ProgressBar
                    android:id="@+id/markAssistedProgressLayout"
                    android:visibility="gone"
                    style="@style/progressBarWhite"
                    android:layout_width="50dp"
                    android:layout_height="50dp" />


Style file:

    <style name="progressBarWhite" parent="@style/Theme.AppCompat">
        <item name="colorAccent">@color/cherry_red_10_percent_opacity</item>
    </style>

The pic:

enter image description here

Hope someone could help me.

1 Answers1

1

Rather than using a style, i directly set a indeterminateTint.

                <ProgressBar
                    android:id="@+id/markAssistedProgressLayout"
                    android:visibility="gone"
                    android:layout_width="50dp"
                    android:layout_height="50dp"
                    android:indeterminateTint="@color/white"/>