This repository was archived by the owner on Jul 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,24 +4,41 @@ A lightweight library to show loading animation inside a button
44[ ![ ] ( https://jitpack.io/v/droidbond/LoadingButton.svg )] ( https://jitpack.io/v/droidbond/LoadingButton )
55
66## Installation (with Gradle)
7- Just add the dependency to your * build.gradle* :
7+ Add the dependency to your * build.gradle* :
88
99``` groovy
1010 repositories {
1111 jcenter()
1212 maven { url "https://jitpack.io" }
1313 }
1414 dependencies {
15- implementation 'com.github.droidbond:LoadingButton:0.1.0 '
15+ implementation 'com.github.droidbond:LoadingButton:0.1.1 '
1616 }
1717```
18+ ```
19+ minSdk 15
20+ targetSdk 28
21+ ```
22+
23+ ### Demo
24+ <img src =" https://github.com/droidbond/LoadingButton/blob/master/device-2018-11-22-155730.png " width =" 250 " >
25+ <img src =" https://github.com/droidbond/LoadingButton/blob/master/device-2018-11-22-155750.png " width =" 250 " >
26+
1827### How to use
1928Inside xml layout
29+ Add this in your root layout. For adding customized attributes use ` app ` namespace
30+ ```
31+ xmlns:app="http://schemas.android.com/apk/res-auto"
32+ ```
2033``` xml
2134 <droidbond .loadingbutton.LoadingButton
2235 android : layout_width =" wrap_content"
2336 android : layout_height =" wrap_content"
2437 android : id =" @+id/normal"
38+ app : text =" @string/continue_text"
39+ app : textColor =" @color/white"
40+ app : progressColor =" @color/black"
41+ app : progressBarSize =" small"
2542 app : layout_constraintTop_toTopOf =" parent"
2643 app : layout_constraintStart_toStartOf =" parent"
2744 android : layout_marginTop =" 28dp"
You can’t perform that action at this time.
0 commit comments