This repository was archived by the owner on Jul 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,41 @@ A lightweight library to show loading animation inside a button
4
4
[ ![ ] ( https://jitpack.io/v/droidbond/LoadingButton.svg )] ( https://jitpack.io/v/droidbond/LoadingButton )
5
5
6
6
## Installation (with Gradle)
7
- Just add the dependency to your * build.gradle* :
7
+ Add the dependency to your * build.gradle* :
8
8
9
9
``` groovy
10
10
repositories {
11
11
jcenter()
12
12
maven { url "https://jitpack.io" }
13
13
}
14
14
dependencies {
15
- implementation 'com.github.droidbond:LoadingButton:0.1.0 '
15
+ implementation 'com.github.droidbond:LoadingButton:0.1.1 '
16
16
}
17
17
```
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
+
18
27
### How to use
19
28
Inside 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
+ ```
20
33
``` xml
21
34
<droidbond .loadingbutton.LoadingButton
22
35
android : layout_width =" wrap_content"
23
36
android : layout_height =" wrap_content"
24
37
android : id =" @+id/normal"
38
+ app : text =" @string/continue_text"
39
+ app : textColor =" @color/white"
40
+ app : progressColor =" @color/black"
41
+ app : progressBarSize =" small"
25
42
app : layout_constraintTop_toTopOf =" parent"
26
43
app : layout_constraintStart_toStartOf =" parent"
27
44
android : layout_marginTop =" 28dp"
You can’t perform that action at this time.
0 commit comments