Ecosyste.ms: Awesome

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

https://github.com/jaeryo2357/circleTimer

A CirclerTimer with Animation and Timer
https://github.com/jaeryo2357/circleTimer

android circletimer clockview java library

Last synced: about 1 month ago
JSON representation

A CirclerTimer with Animation and Timer

Lists

README

        

# CircleTimer-Android

[![](https://jitpack.io/v/jaeryo2357/CircleTimer-Android.svg)](https://jitpack.io/#jaeryo2357/CircleTimer-Android)

A CirclerTimer with Animation and Timer

## Setup
To use this library your `minSdkVersion` must be >= 21.

In your build.gradle :
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
In your build.gradle :
```gradle
dependencies {
implementation 'com.github.jaeryo2357:circleTimer:1.1.7'
}
```

## Example

### From the layout
but CircleTimer is have Error from`RelativeLayout`, so you better use Layout without RelativeLayout

```xml



```

You can change the wheel color, text, and outline

### From the code
```java
timer = findViewById(R.id.main_timer);
timer.setMaximumTime(3600) // 60 minute
timer.setInitPosition(2000); //default max 3600
```

### Start Timer

```java
timer.start()
// Stop and Reset() have to call after Start()
timer.stop()
timer.reset()
```

### End Timer Linstener

```java
rectTimer.setBaseTimerEndedListener(new RectTimer.baseTimerEndedListener() { //timer 종료
@Override
public void OnEnded() {

}
});
```