Skip to content

Commit a1c4411

Browse files
committed
Update README
1 parent 52d9186 commit a1c4411

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
Gradle
2424
~~~
2525
dependencies {
26-
compile 'com.github.abdularis:androidbuttonprogress:v0.1-alpha3'
26+
compile 'com.github.abdularis:androidbuttonprogress:v0.1-alpha4'
2727
}
2828
~~~
2929

@@ -35,6 +35,16 @@ Please always use same width and height for this button progress view
3535
~~~
3636
![sc1](screenshot/sc1.png)
3737

38+
You can also
39+
~~~xml
40+
<com.github.abdularis.buttonprogress.DownloadButtonProgress
41+
android:layout_width="72dp"
42+
android:layout_height="72dp"
43+
app:progressIndeterminateSweepAngle="1"
44+
app:state="INDETERMINATE"/>
45+
~~~
46+
![demo1](screenshot/demo1.gif)
47+
3848

3949
Use custom drawable for every state
4050
~~~xml
@@ -89,6 +99,7 @@ attrs for DownloadButtonProgress
8999
<enum name="FINISHED" value="4"/>
90100
</attr>
91101
<attr name="cancelable" format="boolean"/>
102+
<attr name="progressIndeterminateSweepAngle" format="integer"/>
92103

93104
<attr name="idleBackgroundColor" format="color"/>
94105
<attr name="finishBackgroundColor" format="color"/>

screenshot/demo.gif

-44.3 KB
Loading

screenshot/demo1.gif

21.5 KB
Loading

0 commit comments

Comments
 (0)