From 2933e214c6be4e35847c91f157e2dd54a0bf05b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Thu, 25 Mar 2021 11:37:40 +0100 Subject: [PATCH] [Layout] Migrate paddingStart/paddingEnd to paddingHorizontal. --- .../main/res/layout/attendance_config_dialog.xml | 3 +-- app/src/main/res/layout/dialog_config_grades.xml | 3 +-- app/src/main/res/layout/dialog_lesson_details.xml | 3 +-- app/src/main/res/layout/fragment_feedback.xml | 6 ++---- app/src/main/res/layout/grades_item_stats.xml | 6 ++---- .../res/layout/material_drawer_item_profile.xml | 5 +---- app/src/main/res/layout/md_simplelist_item.xml | 7 ++----- app/src/main/res/layout/timetable_lesson.xml | 12 ++++-------- app/src/main/res/layout/widget_lucky_number.xml | 13 +++---------- app/src/main/res/layout/widget_lucky_number_big.xml | 13 +++---------- .../main/res/layout/widget_lucky_number_dark.xml | 13 +++---------- .../res/layout/widget_lucky_number_dark_big.xml | 13 +++---------- 12 files changed, 26 insertions(+), 71 deletions(-) diff --git a/app/src/main/res/layout/attendance_config_dialog.xml b/app/src/main/res/layout/attendance_config_dialog.xml index 5d7db447..e691f762 100644 --- a/app/src/main/res/layout/attendance_config_dialog.xml +++ b/app/src/main/res/layout/attendance_config_dialog.xml @@ -13,8 +13,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingStart="24dp" - android:paddingEnd="24dp"> + android:paddingHorizontal="24dp"> + android:paddingHorizontal="24dp"> + android:hint="" /> - \ No newline at end of file + diff --git a/app/src/main/res/layout/grades_item_stats.xml b/app/src/main/res/layout/grades_item_stats.xml index 1d990737..46e1a403 100644 --- a/app/src/main/res/layout/grades_item_stats.xml +++ b/app/src/main/res/layout/grades_item_stats.xml @@ -51,8 +51,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" - android:paddingStart="8dp" - android:paddingEnd="8dp"> + android:paddingHorizontal="8dp"> + android:paddingHorizontal="8dp"> + android:paddingHorizontal="@dimen/material_drawer_vertical_padding"> + android:paddingHorizontal="@dimen/md_dialog_frame_margin"> - \ No newline at end of file + diff --git a/app/src/main/res/layout/timetable_lesson.xml b/app/src/main/res/layout/timetable_lesson.xml index 9992da27..fc39e799 100644 --- a/app/src/main/res/layout/timetable_lesson.xml +++ b/app/src/main/res/layout/timetable_lesson.xml @@ -35,8 +35,7 @@ android:layout_height="wrap_content" android:background="@drawable/timetable_lesson_annotation" android:fontFamily="sans-serif-condensed" - android:paddingStart="8dp" - android:paddingEnd="8dp" + android:paddingHorizontal="8dp" android:text="@string/timetable_lesson_cancelled" android:textColor="#000" android:textSize="12sp" @@ -49,8 +48,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="top" - android:paddingStart="8dp" - android:paddingEnd="8dp" + android:paddingHorizontal="8dp" android:orientation="horizontal" android:baselineAligned="false"> @@ -109,8 +107,7 @@ android:fontFamily="sans-serif-condensed-light" android:includeFontPadding="false" android:layout_marginBottom="-4dp" - android:paddingStart="4dp" - android:paddingEnd="4dp" + android:paddingHorizontal="4dp" android:text="@{Integer.toString(lessonNumber)}" android:textSize="28sp" android:visibility="@{lessonNumber != null ? View.VISIBLE : View.GONE}" @@ -126,8 +123,7 @@ android:layout_weight="1" android:gravity="bottom" android:orientation="horizontal" - android:paddingStart="8dp" - android:paddingEnd="8dp"> + android:paddingHorizontal="8dp"> @@ -88,4 +81,4 @@ tools:visibility="gone" /> - \ No newline at end of file + diff --git a/app/src/main/res/layout/widget_lucky_number_big.xml b/app/src/main/res/layout/widget_lucky_number_big.xml index ca97f832..d1d8517b 100644 --- a/app/src/main/res/layout/widget_lucky_number_big.xml +++ b/app/src/main/res/layout/widget_lucky_number_big.xml @@ -1,5 +1,4 @@ @@ -86,4 +79,4 @@ tools:visibility="gone" /> - \ No newline at end of file + diff --git a/app/src/main/res/layout/widget_lucky_number_dark.xml b/app/src/main/res/layout/widget_lucky_number_dark.xml index 90ca469d..93f97e2d 100644 --- a/app/src/main/res/layout/widget_lucky_number_dark.xml +++ b/app/src/main/res/layout/widget_lucky_number_dark.xml @@ -1,5 +1,4 @@ @@ -85,4 +78,4 @@ tools:visibility="gone" /> - \ No newline at end of file + diff --git a/app/src/main/res/layout/widget_lucky_number_dark_big.xml b/app/src/main/res/layout/widget_lucky_number_dark_big.xml index 58684cbe..950c7064 100644 --- a/app/src/main/res/layout/widget_lucky_number_dark_big.xml +++ b/app/src/main/res/layout/widget_lucky_number_dark_big.xml @@ -1,5 +1,4 @@ @@ -86,4 +79,4 @@ tools:visibility="gone" /> - \ No newline at end of file +