I want to implement a progress bar similar to this:
In material design documentation it says I need to set indeterminateAnimationType to contiguous to achieve this and provide three colors. But how to provide three colors when the indicatorColor attribute accepts only 1 color ?
When I run this code it throws an exception says Contiguous indeterminate animation must be used with 3 or more indicator colors:
<com.google.android.material.progressindicator.LinearProgressIndicator
android:id="@+id/progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
app:indeterminateAnimationType="contiguous"
app:hideAnimationBehavior="outward"
app:showAnimationBehavior="inward"
app:trackThickness="5dp" />

