|
@@ -17,202 +17,208 @@
|
|
|
~ You should have received a copy of the GNU General Public License
|
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
-->
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
- android:orientation="vertical"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
tools:background="@color/white">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_margin="@dimen/standard_margin"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:layout_width="0dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/nc_remind"
|
|
|
- android:layout_weight="1"
|
|
|
- android:textSize="@dimen/md_title_textsize" />
|
|
|
+ android:layout_margin="@dimen/standard_margin"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:id="@+id/date_time_picker_timestamp"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- tools:text="Apr 15th, 8:00 AM"
|
|
|
- android:textSize="@dimen/supporting_text_text_size"
|
|
|
- android:textStyle="bold" />
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/nc_remind"
|
|
|
+ android:textSize="@dimen/md_title_textsize" />
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/date_time_picker_timestamp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/supporting_text_text_size"
|
|
|
+ android:textStyle="bold"
|
|
|
+ tools:text="Apr 15th, 8:00 AM" />
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <com.google.android.material.divider.MaterialDivider
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/date_time_picker_later_today"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="?android:attr/selectableItemBackground"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:padding="@dimen/standard_padding">
|
|
|
+ <com.google.android.material.divider.MaterialDivider
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:layout_width="0dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/date_time_picker_later_today"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:text="@string/later_today"
|
|
|
- android:textSize="@dimen/headline_text_size" />
|
|
|
+ android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:id="@+id/date_time_picker_later_today_textview"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/headline_text_size"
|
|
|
- android:text="" />
|
|
|
- </LinearLayout>
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/later_today"
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/date_time_picker_tomorrow"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="?android:attr/selectableItemBackground"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:padding="@dimen/standard_padding">
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/date_time_picker_later_today_textview"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text=""
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:layout_width="0dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/date_time_picker_tomorrow"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:text="@string/tomorrow"
|
|
|
- android:textSize="@dimen/headline_text_size" />
|
|
|
+ android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:id="@+id/date_time_picker_tomorrow_textview"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/headline_text_size"
|
|
|
- android:text="" />
|
|
|
- </LinearLayout>
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/tomorrow"
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/date_time_picker_weekend"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="?android:attr/selectableItemBackground"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:padding="@dimen/standard_padding">
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/date_time_picker_tomorrow_textview"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text=""
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:layout_width="0dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/date_time_picker_weekend"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:text="@string/this_weekend"
|
|
|
- android:textSize="@dimen/headline_text_size" />
|
|
|
+ android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:id="@+id/date_time_picker_weekend_textview"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/headline_text_size"
|
|
|
- android:text="" />
|
|
|
- </LinearLayout>
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/this_weekend"
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/date_time_picker_next_week"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="?android:attr/selectableItemBackground"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:padding="@dimen/standard_padding">
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/date_time_picker_weekend_textview"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text=""
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:layout_width="0dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/date_time_picker_next_week"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:text="@string/next_week"
|
|
|
- android:textSize="@dimen/headline_text_size" />
|
|
|
+ android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:id="@+id/date_time_picker_next_week_textview"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/headline_text_size"
|
|
|
- android:text="" />
|
|
|
- </LinearLayout>
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/next_week"
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
|
|
|
- <com.google.android.material.divider.MaterialDivider
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/date_time_picker_next_week_textview"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text=""
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/date_time_picker_custom"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:padding="@dimen/standard_padding"
|
|
|
- android:background="?android:attr/selectableItemBackground">
|
|
|
+ <com.google.android.material.divider.MaterialDivider
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/date_time_picker_custom_icon"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/date_time_picker_custom"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:src="@drawable/baseline_calendar_month_24"
|
|
|
- android:paddingEnd="@dimen/standard_double_padding"
|
|
|
- tools:ignore="RtlSymmetry"
|
|
|
- android:contentDescription="@string/calendar" />
|
|
|
+ android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <com.google.android.material.textview.MaterialTextView
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/custom"
|
|
|
- android:layout_weight="1"
|
|
|
- android:textSize="@dimen/headline_text_size" />
|
|
|
- </LinearLayout>
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/date_time_picker_custom_icon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:contentDescription="@string/calendar"
|
|
|
+ android:paddingEnd="@dimen/standard_double_padding"
|
|
|
+ android:src="@drawable/baseline_calendar_month_24"
|
|
|
+ tools:ignore="RtlSymmetry" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal">
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/custom"
|
|
|
+ android:textSize="@dimen/headline_text_size" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_weight="1">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/button_delete"
|
|
|
+ style="@style/Button.Borderless"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="@dimen/min_size_clickable_area"
|
|
|
+ android:text="@string/nc_delete"
|
|
|
+ android:textColor="@color/design_default_color_error" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
- android:id="@+id/button_delete"
|
|
|
+ android:id="@+id/button_set"
|
|
|
style="@style/Button.Borderless"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:minHeight="@dimen/min_size_clickable_area"
|
|
|
- android:text="@string/nc_delete"
|
|
|
- android:textColor="@color/design_default_color_error" />
|
|
|
+ android:text="@string/set" />
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/button_close"
|
|
|
+ style="@style/Button.Borderless"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="end"
|
|
|
+ android:minHeight="@dimen/min_size_clickable_area"
|
|
|
+ android:text="@string/close" />
|
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
- android:id="@+id/button_set"
|
|
|
- style="@style/Button.Borderless"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:minHeight="@dimen/min_size_clickable_area"
|
|
|
- android:text="@string/set" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
- android:id="@+id/button_close"
|
|
|
- style="@style/Button.Borderless"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="end"
|
|
|
- android:minHeight="@dimen/min_size_clickable_area"
|
|
|
- android:text="@string/close" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
-
|
|
|
-
|
|
|
-</LinearLayout>
|
|
|
+</ScrollView>
|