redesigning the custom interval picker dialog

This commit is contained in:
tibbi 2022-07-26 16:15:08 +02:00
parent 7105ce5efa
commit 4f8a0d10f6

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dialog_custom_interval_scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@ -11,19 +10,26 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin">
android:paddingTop="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/dialog_custom_interval_value"
android:layout_width="wrap_content"
<com.simplemobiletools.commons.views.MyTextInputLayout
android:id="@+id/dialog_custom_interval_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:digits="0123456789"
android:ems="6"
android:inputType="number"
android:maxLength="5"
android:textCursorDrawable="@null"
android:textSize="@dimen/normal_text_size"/>
android:hint="@string/value">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/dialog_custom_interval_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:digits="0123456789"
android:inputType="number"
android:maxLength="5"
android:textCursorDrawable="@null"
android:textSize="@dimen/bigger_text_size" />
</com.simplemobiletools.commons.views.MyTextInputLayout>
<RadioGroup
android:id="@+id/dialog_radio_view"
@ -35,33 +41,33 @@
android:id="@+id/dialog_radio_seconds"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/seconds_raw"/>
android:paddingBottom="@dimen/activity_margin"
android:text="@string/seconds_raw" />
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/dialog_radio_minutes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/minutes_raw"/>
android:paddingBottom="@dimen/activity_margin"
android:text="@string/minutes_raw" />
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/dialog_radio_hours"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/hours_raw"/>
android:paddingBottom="@dimen/activity_margin"
android:text="@string/hours_raw" />
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/dialog_radio_days"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:text="@string/days_raw"/>
android:paddingBottom="@dimen/activity_margin"
android:text="@string/days_raw" />
</RadioGroup>
</LinearLayout>