79447640

Date: 2025-02-18 09:04:53
Score: 0.5
Natty:
Report link

So my solution as @sdex wrote was to add the CircularProgressIndicator and my code looks like this

1)Create a style in themes.xml

<style name="CustomCircularProgressIndicator" parent="Widget.MaterialComponents.CircularProgressIndicator">
    <item name="indicatorColor">@color/limeGreen</item>
    <item name="trackColor">@color/grey</item>
</style> 

2)Add MaterialComponents to Base.Theme style

<style name="Base.Theme.YOURAPP" parent="Theme.MaterialComponents.DayNight.NoActionBar">

3)Lastly update your CircularProgressIndicator

  <com.google.android.material.progressindicator.CircularProgressIndicator
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_gravity="center"
        android:indeterminate="true"
        style="@style/CustomCircularProgressIndicator" />
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @sdex
  • Self-answer (0.5):
Posted by: Alex