# TimeWheel
**Repository Path**: yunTerry/TimeWheel
## Basic Information
- **Project Name**: TimeWheel
- **Description**: TimeWheel Dialog to set the time period
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-09-19
- **Last Updated**: 2020-12-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## TimeWheel
##### TimeWheel Dialog to set the time period
### Add the dependency
##### step 1
```gradle
allprojects {
repositories {
...
maven { url "https://www.jitpack.io" }
}
}
```
##### step 2
```gradle
compile 'com.github.yunTerry:TimeWheel:v2.1.0'
```
### Get the time period you set
```java
timebtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
new TimeWheel(MainActivity.this, new TimeListener() {
@Override
public void getTime(int[] time) {
//time[0] start hour
//time[1] start minute
//time[2] end hour
//time[3] end minute
timetv.setText(getTimeStr(time));
}
});
}
});
```
### Thanks
##### https://github.com/maarek/android-wheel