TimePickView for android
pick time using simple touches :)
##Usage
###Adding Library
you just add the following dependency to your build.gradle:
dependencies {
repositories {
mavenCentral()
}
compile 'com.anwios.android:timepickview:1.0.2'
}
<com.anwios.android.views.TimePickView
android:id="@+id/tpv"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"/>
<com.anwios.android.views.TimePickView
android:id="@+id/mv"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
app:tpv_textSize="48sp"
app:tpv_markerTextSize="40sp"
app:tpv_minuteHandWidth="8dp"
app:tpv_hourHandWidth="8dp"
app:tpv_minuteHandColor="#FF00cc"
app:tpv_hourHandColor="#FFcc00"
app:tpv_textColor="#00ffcc"
app:tpv_markerSize="15dp"
app:tpv_markerWidth="4dp"
app:tpv_markerTextColor="#66ff66"
app:tpv_centerPointColor="#ff0000"
app:tpv_centerPointSize="8dp"
/>
timePickView.setHour(); //to set hour
timePickView.setMinute();//to set minute
timePickView.setTime(); // to set both hour & minute
timePickView.setMoveHourhandOnMinute(boolean);
timePickView.setOnTimeSetListener(listener);
Any contributions are welcome.
- Nooh - nooh64@gmail.com
This projected is licensed under the terms of the MIT license.