I am using androidx in my project and somewhere i am using ContentLoadingProgressBar but i am not able to change default color.
I have tried with android:indeterminateTint but can't help.
If anyone having any idea regarding this plz suggest
<androidx.core.widget.ContentLoadingProgressBar
android:id="@+id/progress"
android:layout_width="@dimen/_30sdp"
android:layout_height="@dimen/_30sdp"
android:indeterminateTint="@android:color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Extend the default theme and override colorAccent
<style name="AppTheme.WhiteAccent">
<item name="colorAccent">@color/white</item> <!-- Whatever color you want-->
</style>
add ContentLoadingProgressBar the android:theme attribute:
android:theme="@style/AppTheme.WhiteAccent"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With