Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 353b6a3

Browse files
authored
Update README.md
1 parent 232d503 commit 353b6a3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ 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 {
@@ -26,11 +26,19 @@ targetSdk 28
2626

2727
### How to use
2828
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+
```
2933
```xml
3034
<com.didar.loadingbutton.LoadingButton
3135
android:layout_width="wrap_content"
3236
android:layout_height="wrap_content"
3337
android:id="@+id/normal"
38+
app:text="@string/continue_text"
39+
app:textColor="@color/white"
40+
app:progressColor="@color/black"
41+
app:progressBarSize="small"
3442
app:layout_constraintTop_toTopOf="parent"
3543
app:layout_constraintStart_toStartOf="parent"
3644
android:layout_marginTop="28dp"

0 commit comments

Comments
 (0)