Android Library for TimePicker View
Switch branches/tags
Nothing to show
Clone or download
Latest commit 99142fc Nov 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app updated sample app Oct 30, 2016
images updated screenshots Oct 30, 2016
timepicker-library updated sample app Oct 30, 2016
.gitignore first commit Feb 27, 2015
LICENSE license Mar 1, 2015
README.md Update README.md Nov 27, 2017
build.gradle nougat update Oct 29, 2016
gradle.properties first commit Feb 27, 2015
settings.gradle timePicker Library Feb 27, 2015

README.md

(Deprecated) TimePicker

Android Library for TimePicker View

Android Arsenal

Download

Get it on Google Play

Images of Sample App

Usage

Gradle Import: jcenter
```groovy dependencies { compile 'com.github.erz05:TimePicker:0.1.5@aar' } ```
<com.erz.timepicker_library.TimePicker
    android:id="@+id/timePicker"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

<com.erz.timepicker_library.TimePicker
    xmlns:timepicker="http://schemas.android.com/apk/res-auto"
    android:id="@+id/timePicker"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    timepicker:clock_color="#FF0000"
    timepicker:text_color="#FF0000"
    timepicker:dial_color="#FF0000"/>
TimePicker timePicker = (TimePicker) findViewById(R.id.timePicker);

//or 

TimePicker timePicker = new TimePicker(context);

//Set TimePicker Color
timePicker.setColor(Color.BLUE);

//Set Dial Color
timePicker.setDialColor(Color.RED);

//Set Clock Color
timePicker.setClockColor(Color.GREEN);

//Set Text Color
timePicker.setTextColor(Color.YELLOW);

//Disable Touch
timePicker.disableTouch(true);

//Enable Twenty Four Hour Clock
timePicker.enableTwentyFourHour(true);

//Set Time
timePicker.setTime(new Date());

//Get Time
timePicker.getTime();

//Set OnTimeChangedListener
timePicker.setTimeChangedListener(this);

//OnTimeChangeListener Interface
public static interface OnTimeChangedListener {
    public void timeChanged(Date date);
}

License

Copyright 2015 erz05
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.