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 2 months ago
JSON representation
A CirclerTimer with Animation and Timer
- Host: GitHub
- URL: https://github.com/jaeryo2357/circleTimer
- Owner: jaeryo2357
- License: apache-2.0
- Created: 2020-02-08T12:02:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T13:07:56.000Z (10 months ago)
- Last Synced: 2024-08-04T22:14:01.342Z (5 months ago)
- Topics: android, circletimer, clockview, java, library
- Language: Java
- Homepage:
- Size: 919 KB
- Stars: 33
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - CircleTimer - 2.0) | <img src="/art/CircleTimer.gif" width="49%"> (Index)
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() {}
});
```