From 9ef37c46efd24f825f802a72ec3640fd7b6dbb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Thu, 25 Mar 2021 11:54:52 +0100 Subject: [PATCH] [Layout] Migrate paddingTop/paddingBottom to paddingVertical. --- app/src/main/res/layout/attendance_config_dialog.xml | 2 +- app/src/main/res/layout/dialog_day.xml | 3 +-- app/src/main/res/layout/dialog_event_list.xml | 3 +-- app/src/main/res/layout/dialog_event_manual_v2.xml | 3 +-- .../main/res/layout/dialog_lesson_change_list.xml | 3 +-- app/src/main/res/layout/dialog_lesson_details.xml | 3 +-- .../main/res/layout/dialog_register_unavailable.xml | 3 +-- .../main/res/layout/dialog_teacher_absence_list.xml | 3 +-- app/src/main/res/layout/grades_item_grade.xml | 3 +-- app/src/main/res/layout/login_summary_fragment.xml | 3 +-- app/src/main/res/layout/message_fragment.xml | 12 ++++-------- app/src/main/res/layout/messages_details.xml | 9 +++------ app/src/main/res/layout/messages_item.xml | 5 ++--- app/src/main/res/layout/messages_list_item.xml | 3 +-- app/src/main/res/layout/row_attendance_item.xml | 3 +-- app/src/main/res/layout/row_grades_editor_item.xml | 3 +-- 16 files changed, 22 insertions(+), 42 deletions(-) diff --git a/app/src/main/res/layout/attendance_config_dialog.xml b/app/src/main/res/layout/attendance_config_dialog.xml index e691f762..a75da4ac 100644 --- a/app/src/main/res/layout/attendance_config_dialog.xml +++ b/app/src/main/res/layout/attendance_config_dialog.xml @@ -33,7 +33,7 @@ diff --git a/app/src/main/res/layout/dialog_event_list.xml b/app/src/main/res/layout/dialog_event_list.xml index 93020786..d321844b 100644 --- a/app/src/main/res/layout/dialog_event_list.xml +++ b/app/src/main/res/layout/dialog_event_list.xml @@ -88,8 +88,7 @@ android:layout_marginTop="8dp" android:clipToPadding="false" android:paddingHorizontal="16dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" + android:paddingVertical="8dp" tools:listitem="@layout/row_dialog_event_list_item" /> diff --git a/app/src/main/res/layout/dialog_event_manual_v2.xml b/app/src/main/res/layout/dialog_event_manual_v2.xml index 0c091883..b8e12927 100644 --- a/app/src/main/res/layout/dialog_event_manual_v2.xml +++ b/app/src/main/res/layout/dialog_event_manual_v2.xml @@ -139,8 +139,7 @@ android:id="@+id/showMore" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="16dp" - android:paddingBottom="16dp" + android:paddingVertical="16dp" android:text="@string/dialog_event_manual_more_options" android:background="?selectableItemBackground" diff --git a/app/src/main/res/layout/dialog_lesson_change_list.xml b/app/src/main/res/layout/dialog_lesson_change_list.xml index 47c109f4..2925813f 100644 --- a/app/src/main/res/layout/dialog_lesson_change_list.xml +++ b/app/src/main/res/layout/dialog_lesson_change_list.xml @@ -8,7 +8,6 @@ android:layout_height="match_parent" android:clipToPadding="false" android:paddingHorizontal="24dp" - android:paddingTop="8dp" - android:paddingBottom="8dp" + android:paddingVertical="8dp" tools:listitem="@layout/timetable_lesson" /> diff --git a/app/src/main/res/layout/dialog_lesson_details.xml b/app/src/main/res/layout/dialog_lesson_details.xml index d1dba0b1..3c891d4d 100644 --- a/app/src/main/res/layout/dialog_lesson_details.xml +++ b/app/src/main/res/layout/dialog_lesson_details.xml @@ -304,8 +304,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" - android:paddingTop="16dp" - android:paddingBottom="16dp" + android:paddingVertical="16dp" android:orientation="vertical" android:visibility="gone" tools:visibility="visible"> diff --git a/app/src/main/res/layout/dialog_register_unavailable.xml b/app/src/main/res/layout/dialog_register_unavailable.xml index 056fcba7..0880179d 100644 --- a/app/src/main/res/layout/dialog_register_unavailable.xml +++ b/app/src/main/res/layout/dialog_register_unavailable.xml @@ -37,8 +37,7 @@ android:layout_height="wrap_content" android:orientation="vertical" android:paddingHorizontal="24dp" - android:paddingTop="16dp" - android:paddingBottom="16dp"> + android:paddingVertical="16dp"> diff --git a/app/src/main/res/layout/grades_item_grade.xml b/app/src/main/res/layout/grades_item_grade.xml index 10cc06b2..d7fe38e3 100644 --- a/app/src/main/res/layout/grades_item_grade.xml +++ b/app/src/main/res/layout/grades_item_grade.xml @@ -11,8 +11,7 @@ android:layout_height="wrap_content" android:background="?selectableItemBackground" android:orientation="horizontal" - android:paddingTop="8dp" - android:paddingBottom="8dp"> + android:paddingVertical="8dp"> + android:paddingVertical="8dp"> + android:paddingVertical="8dp"> + android:paddingVertical="8dp"> + android:paddingVertical="8dp"> + android:paddingVertical="8dp"> - \ No newline at end of file + diff --git a/app/src/main/res/layout/messages_list_item.xml b/app/src/main/res/layout/messages_list_item.xml index 6bd8af55..686e9dce 100644 --- a/app/src/main/res/layout/messages_list_item.xml +++ b/app/src/main/res/layout/messages_list_item.xml @@ -105,8 +105,7 @@ android:layout_marginEnd="4dp" android:layout_marginRight="4dp" android:adjustViewBounds="true" - android:paddingTop="2dp" - android:paddingBottom="2dp" + android:paddingVertical="2dp" android:scaleType="fitCenter" app:iiv_color="?android:textColorSecondary" app:iiv_icon="cmd-attachment" diff --git a/app/src/main/res/layout/row_attendance_item.xml b/app/src/main/res/layout/row_attendance_item.xml index 5631ab87..d6e6bfd2 100644 --- a/app/src/main/res/layout/row_attendance_item.xml +++ b/app/src/main/res/layout/row_attendance_item.xml @@ -4,8 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingBottom="8dp"> + android:paddingVertical="8dp"> + android:paddingVertical="8dp">