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

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.

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()
}
```