Change the style of your Progressbar and add om Drawable android:progressDrawable
as the example below and create a Drawable file as in the example.
<ProgressBar
style="@android:style/Widget.ProgressBar.Horizontal"
android:progressDrawable="@drawable/blueprogressbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
drawable layout file. Code below should be in the Layout folder with the name blueprogressbar.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#ff9d9e9d"
android:centerColor="#ff5a5d5a"
android:centerY="0.75"
android:endColor="#ff747674"
android:angle="270"
/>
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5dip" />
<gradient
android:startColor="#80ffd300"
android:centerColor="#80ffb600"
android:centerY="0.75"
android:endColor="#a0ffcb00"
android:angle="270"
/>
</shape>
</clip>
</item>
<item
android:id="@android:id/progress"
>
<clip>
<shape>
<corners
android:radius="5dip" />
<gradient
android:startColor="#338FFF"
android:endColor="#003180"
android:angle="270" />
</shape>
</clip>
</item>
</layer-list>
Dude, for me here did not appear this getIndeterminateDrawablw option
– Eduardo Bonfa
getProgressDrawable(), in your case!
– user24280