Custom Progressbar with shape

Custom Progressbar with gradient without path

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="2.5"
android:thickness="2dp"
android:useLevel="true">
<gradient android:startColor="#33FFFF"
android:endColor="#0033FFFF"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<linearInterpolator xmlns:android="http://schemas.android.com/apk/res/android" />
<?xml version="1.0" encoding="utf-8"?>

<rotate android:fromDegrees="0"
android:toDegrees="360"
android:interpolator="@anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:duration="600"
android:repeatMode="restart"
android:repeatCount="infinite"
xmlns:android="http://schemas.android.com/apk/res/android" />
?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<RelativeLayout
android:background="#03A9F4"
android:layout_centerInParent="true"
android:layout_width="300dp"
android:layout_height="300dp"/>
<ProgressBar
android:id="@+id/progress_circular"
android:layout_width="150dp"
android:layout_height="150dp"
style="?android:progressBarStyleHorizontal"
android:progress="20"
android:layout_centerInParent="true"
android:progressDrawable="@drawable/circle"/>
</RelativeLayout>
Animation rotation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.rotate_infinie);
((ProgressBar) findViewById(R.id.progress_circular)).startAnimation(rotation);

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store