An open API service indexing awesome lists of open source software.

https://github.com/skywalkerdarren/iosloadingview

like iOS loading drawable
https://github.com/skywalkerdarren/iosloadingview

android ios-like kotlin library loading

Last synced: 3 months ago
JSON representation

like iOS loading drawable

Awesome Lists containing this project

README

          

# iOSLoadingView
[![](https://jitpack.io/v/SkywalkerDarren/iOSLoadingView.svg)](https://jitpack.io/#SkywalkerDarren/iOSLoadingView)

iOS like loading drawable
# start
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
```
dependencies {
implementation 'com.github.SkywalkerDarren:iOSLoadingView:v1.0'
}
```
# usage
```kotlin
val loading = IosLoadingDrawable(
context = this, // context
paintColor = Color.YELLOW, // color
paintWidth = 10.dp2px(), // line width in px
lineCount = 6, // number of line
rotateDuration = 500L // animation duration
)
loading.percents = 0.5f // range in 0 to 1f
loading.start() // start animtaion
loading.pause() // pause animation
```