show a time picker at pressing initial time at the timer tab

This commit is contained in:
tibbi
2018-03-09 10:13:35 +01:00
parent 8b429a5006
commit 9fc8115f26
4 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/my_time_picker_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="@dimen/activity_margin">
<com.shawnlin.numberpicker.NumberPicker
android:id="@+id/my_time_picker_hours"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/medium_margin"
app:np_fadingEdgeEnabled="false"
app:np_max="23"
app:np_min="0"
app:np_selectedTextSize="@dimen/big_text_size"
app:np_textSize="@dimen/big_text_size"/>
<com.shawnlin.numberpicker.NumberPicker
android:id="@+id/my_time_picker_minutes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/medium_margin"
app:np_fadingEdgeEnabled="false"
app:np_max="59"
app:np_min="0"
app:np_selectedTextSize="@dimen/big_text_size"
app:np_textSize="@dimen/big_text_size"/>
<com.shawnlin.numberpicker.NumberPicker
android:id="@+id/my_time_picker_seconds"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/medium_margin"
app:np_fadingEdgeEnabled="false"
app:np_max="59"
app:np_min="0"
app:np_selectedTextSize="@dimen/big_text_size"
app:np_textSize="@dimen/big_text_size"/>
</LinearLayout>