File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ allprojects {
2323Gradle
2424~~~
2525dependencies {
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
3949Use 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" />
You can’t perform that action at this time.
0 commit comments