Skip to content

Commit 0cd4d14

Browse files
Create README.md
1 parent 89ee8b5 commit 0cd4d14

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# iOSLoadingView
2+
iOS like loading drawable
3+
# start
4+
```
5+
allprojects {
6+
repositories {
7+
...
8+
maven { url 'https://jitpack.io' }
9+
}
10+
}
11+
```
12+
```
13+
dependencies {
14+
implementation 'com.github.SkywalkerDarren:iOSLoadingView:v1.0'
15+
}
16+
```
17+
# usage
18+
```kotlin
19+
val loading = IosLoadingDrawable(
20+
context = this, // context
21+
paintColor = Color.YELLOW, // color
22+
paintWidth = 10.dp2dx(), // line width in px
23+
lineCount = 6, // number of line
24+
rotateDuration = 500L // animation duration
25+
)
26+
loading.percents = 0.5f // range in 0 to 1f
27+
loading.start() // start animtaion
28+
loading.pause() // pause animation
29+
```

0 commit comments

Comments
 (0)