Android Progress Bar

Small library allowing you to make a smooth indeterminate progress bar. You can either use your progress bars and set this drawable or use directly the SmoothProgressBarView.

How Does It Looks:-


Integration Of Smooth Progress Bar Library :-

dependencies {

compile 'com.github.castorflex.smoothprogressbar:library:1.0.0'

compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.0'
}

Usage UI xml Code For Progress Bar :-

// use this is for linear smooth progress bar
<fr.castorflex.android.smoothprogressbar.SmoothProgressBar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
app:spb_sections_count="4" // this count the section divides in progress bar
app:spb_color="#FF0000" // set the color of all section default is red
app:spb_speed="2.0" // speed of the progress bar
app:spb_stroke_width="4dp" // width of each section in progress bar
app:spb_stroke_separator_length="4dp" // length of each section in progress bar
app:spb_reversed="false" // animation which moves in reversed direction
app:spb_mirror_mode="false" // mirror mode half section is the reversed
app:spb_progressiveStart_activated="true"
app:spb_progressiveStart_speed="1.5" // speed of start
app:spb_progressiveStop_speed="3.4" // speed of stop
/>
// use this for circular smooth progress bar

<fr.castorflex.android.circularprogressbar.CircularProgressBar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
app:cpb_color="#FFee44"
app:cpb_rotation_speed="1.0"
app:cpb_sweep_speed="1.0"
app:cpb_stroke_width="4dp"
app:cpb_min_sweep_angle="10"
app:cpb_max_sweep_angle="300"
/>
Refrence Link For Java Functionality To Customize This :-
http://antoine-merle.com/blog/2013/11/12/make-your-progressbar-more-smooth/

Komentar

Postingan Populer