Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.raj10071997:CustomCiruclarProgressBar:v1.0'
}
<com.example.customprogressbar.customView
android:layout_width="200dp"
android:layout_height="200dp"
android:id="@+id/customBar"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
app:Image="@drawable/microphone"
app:label="wait"
app:main_circle_color="#097054"
app:label_size="80"
app:stroke_width="20"
app:rotatingInverseRate="200"
app:sweep_angle="50"
app:label_color="#FF9900"
app:rotating_bar_color="#6599FF" />
customView myview = (customView) findViewById(R.id.customBar);
myview.setImageID(R.drawable.microphone);
myview.setRotatingInverseRate(200);
myview.setRotatingBarColor(Color.parseColor("#6599FF"));
myview.setStrokeWidth(20);
myview.setSweepAngle(50);
myview.setLabel("wait");
myview.setLabelSize(40);
myview.setLabelColor(Color.parseColor("#FF9900"));
myview.setMainCircleColor(Color.parseColor("#097054"));
For stopping the progress just call myview.stopProgressing() method of the custom view.
CustomCircularProgressBar is licensed under MIT license
. View license.