https://github.com/seanghay/thash
🌌Thash is a disk view, aka Circular Progress.
https://github.com/seanghay/thash
android-library charts circular-progress progress
Last synced: about 1 year ago
JSON representation
🌌Thash is a disk view, aka Circular Progress.
- Host: GitHub
- URL: https://github.com/seanghay/thash
- Owner: seanghay
- Created: 2019-03-24T17:40:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T09:39:00.000Z (almost 4 years ago)
- Last Synced: 2025-01-22T20:11:17.235Z (about 1 year ago)
- Topics: android-library, charts, circular-progress, progress
- Language: Kotlin
- Homepage:
- Size: 360 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thash - ថាស
A circular progress view

--------
## Installation
via Gradle
```gradle
dependencies {
implementation 'com.seanghay:thash:0.1.0'
}
```
---------
## How to Use
### 1. Inflate view
```xml
```
### 2. Progress changed events
```kotlin
thashView.progressChanged { progress, fraction ->
}
```
### 3. Set progress dynamically
```kotlin
// With smooth animation
thashView.animateProgress(50f)
// ValueAnimator options
thashView.animateProgress(50f) {
duration = 400
interpolator = MyInterpolator()
}
// No Animation
thashView.progress = 50f
```
### 4. Animate Angle
```kotlin
thashView.animateAngle()
// With ValueAnimator options
thashView.animateAngle {
duration = 2000
interpolator = MyInterpolator()
}
```