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
- Host: GitHub
- URL: https://github.com/skywalkerdarren/iosloadingview
- Owner: SkywalkerDarren
- Created: 2020-12-25T10:12:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T14:42:22.000Z (over 5 years ago)
- Last Synced: 2025-10-25T11:59:16.933Z (8 months ago)
- Topics: android, ios-like, kotlin, library, loading
- Language: Kotlin
- Homepage:
- Size: 135 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iOSLoadingView
[](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
```