Skip to content

It's a simple circular progress bar. It shows progress bar around an image.

License

Notifications You must be signed in to change notification settings

raj10071997/CustomCiruclarProgressBar

Repository files navigation

CustomCiruclarProgressBar

Usage

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'
}

GIF

videotogif_2017 09 28_14 39 46

XML

<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" />

Java

 	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.

License

CustomCircularProgressBar is licensed under MIT license. View license.

About

It's a simple circular progress bar. It shows progress bar around an image.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages