mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
show a time picker at pressing initial time at the timer tab
This commit is contained in:
44
app/src/main/res/layout/dialog_my_time_picker.xml
Normal file
44
app/src/main/res/layout/dialog_my_time_picker.xml
Normal 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>
|
Reference in New Issue
Block a user