Animated Progress Loding Button with multiple functionality.
- Loading Animation
- Error Animation
- Success Animation
-
Custom Button Drawable
-
Custom Button Color
-
Custom Progress Color
-
Custom Success Icon
-
Custom Error Icon
-
Custom Button Success Color
-
Custom Button Error Color
-
Change Text Color
-
Custom Font Style
-
No Additional Code Required
-
Fully Customizable
-
Easy to Implement
- Xml
<com.rk.progressbutton.RkProgressButton
android:id="@+id/progress_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:buttonErrorText="Retry"
app:buttonText="Login"
app:buttonDrawable="@drawable/btn_bg"
app:buttonColor="@color/blue"
app:buttonErrorColor="@color/red"
app:buttonSucessColor="@color/green"
app:progressColor="@color/white"
app:doneColor="@color/black"
app:textColor="@color/white" />
- Start Progress Animation
progressButton.progressAnimation()
- Success Animation
progressButton.doneAnimation()
- Error Animation
progressButton.errorAnimation()
- Stop Animation
progressButton.stopAnimation()
dependencies {
implementation 'com.github.smartrk:ProgressButton:1.4'
}