[Layout] Migrate paddingStart/paddingEnd to paddingHorizontal.

This commit is contained in:
Kuba Szczodrzyński 2021-03-25 11:37:40 +01:00
parent a58a557fd0
commit 2933e214c6
12 changed files with 26 additions and 71 deletions

View File

@ -13,8 +13,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingStart="24dp" android:paddingHorizontal="24dp">
android:paddingEnd="24dp">
<TextView <TextView
style="@style/TextAppearance.AppCompat.Small" style="@style/TextAppearance.AppCompat.Small"

View File

@ -14,8 +14,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingStart="24dp" android:paddingHorizontal="24dp">
android:paddingEnd="24dp">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@ -41,8 +41,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/timetable_lesson_annotation" android:background="@drawable/timetable_lesson_annotation"
android:fontFamily="sans-serif-condensed" android:fontFamily="sans-serif-condensed"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingEnd="8dp"
android:text="@string/timetable_lesson_cancelled" android:text="@string/timetable_lesson_cancelled"
android:textColor="#000" android:textColor="#000"
android:textSize="12sp" android:textSize="12sp"

View File

@ -18,9 +18,7 @@
android:id="@+id/targetDeviceDropDown" android:id="@+id/targetDeviceDropDown"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="" android:hint="" />
android:paddingEnd="6.0dip"
android:paddingRight="6.0dip" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
<LinearLayout <LinearLayout

View File

@ -51,8 +51,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="8dp" android:paddingHorizontal="8dp">
android:paddingEnd="8dp">
<LinearLayout <LinearLayout
android:id="@+id/normalSemester1Layout" android:id="@+id/normalSemester1Layout"
@ -194,8 +193,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="8dp" android:paddingHorizontal="8dp">
android:paddingEnd="8dp">
<LinearLayout <LinearLayout
android:id="@+id/pointSemester1Layout" android:id="@+id/pointSemester1Layout"

View File

@ -7,10 +7,7 @@
android:clipChildren="false" android:clipChildren="false"
android:clipToPadding="false" android:clipToPadding="false"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="@dimen/material_drawer_vertical_padding" android:paddingHorizontal="@dimen/material_drawer_vertical_padding">
android:paddingLeft="@dimen/material_drawer_vertical_padding"
android:paddingEnd="@dimen/material_drawer_vertical_padding"
android:paddingRight="@dimen/material_drawer_vertical_padding">
<com.mikepenz.materialdrawer.view.BezelImageView <com.mikepenz.materialdrawer.view.BezelImageView
android:id="@+id/material_drawer_profileIcon" android:id="@+id/material_drawer_profileIcon"

View File

@ -10,10 +10,7 @@
android:gravity="start|center_vertical" android:gravity="start|center_vertical"
android:minHeight="@dimen/md_simpleitem_height" android:minHeight="@dimen/md_simpleitem_height"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingEnd="@dimen/md_dialog_frame_margin" android:paddingHorizontal="@dimen/md_dialog_frame_margin">
android:paddingLeft="@dimen/md_dialog_frame_margin"
android:paddingRight="@dimen/md_dialog_frame_margin"
android:paddingStart="@dimen/md_dialog_frame_margin">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@ -35,8 +35,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/timetable_lesson_annotation" android:background="@drawable/timetable_lesson_annotation"
android:fontFamily="sans-serif-condensed" android:fontFamily="sans-serif-condensed"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingEnd="8dp"
android:text="@string/timetable_lesson_cancelled" android:text="@string/timetable_lesson_cancelled"
android:textColor="#000" android:textColor="#000"
android:textSize="12sp" android:textSize="12sp"
@ -49,8 +48,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top" android:layout_gravity="top"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingEnd="8dp"
android:orientation="horizontal" android:orientation="horizontal"
android:baselineAligned="false"> android:baselineAligned="false">
<!--tools:background="@drawable/timetable_subject_color_rounded"--> <!--tools:background="@drawable/timetable_subject_color_rounded"-->
@ -109,8 +107,7 @@
android:fontFamily="sans-serif-condensed-light" android:fontFamily="sans-serif-condensed-light"
android:includeFontPadding="false" android:includeFontPadding="false"
android:layout_marginBottom="-4dp" android:layout_marginBottom="-4dp"
android:paddingStart="4dp" android:paddingHorizontal="4dp"
android:paddingEnd="4dp"
android:text="@{Integer.toString(lessonNumber)}" android:text="@{Integer.toString(lessonNumber)}"
android:textSize="28sp" android:textSize="28sp"
android:visibility="@{lessonNumber != null ? View.VISIBLE : View.GONE}" android:visibility="@{lessonNumber != null ? View.VISIBLE : View.GONE}"
@ -126,8 +123,7 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="bottom" android:gravity="bottom"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="8dp" android:paddingHorizontal="8dp">
android:paddingEnd="8dp">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@ -1,5 +1,4 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widgetLuckyNumberRoot" android:id="@+id/widgetLuckyNumberRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -33,10 +32,7 @@
android:id="@+id/widgetLuckyNumberProfileRight" android:id="@+id/widgetLuckyNumberProfileRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingLeft="8dp"
android:paddingEnd="8dp"
android:paddingRight="8dp"
android:textColor="@color/primaryTextLight" android:textColor="@color/primaryTextLight"
android:textSize="11sp" android:textSize="11sp"
tools:text="Władca Androida" tools:text="Władca Androida"
@ -51,10 +47,7 @@
android:id="@+id/widgetLuckyNumberTextRight" android:id="@+id/widgetLuckyNumberTextRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingLeft="8dp"
android:paddingEnd="8dp"
android:paddingRight="8dp"
android:textColor="@color/primaryTextLight" android:textColor="@color/primaryTextLight"
android:textSize="16sp" android:textSize="16sp"
tools:text="24" /> tools:text="24" />

View File

@ -1,5 +1,4 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widgetLuckyNumberRoot" android:id="@+id/widgetLuckyNumberRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -30,10 +29,7 @@
android:id="@+id/widgetLuckyNumberProfileRight" android:id="@+id/widgetLuckyNumberProfileRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="12dp" android:paddingHorizontal="12dp"
android:paddingLeft="12dp"
android:paddingEnd="12dp"
android:paddingRight="12dp"
android:textColor="@color/primaryTextLight" android:textColor="@color/primaryTextLight"
android:textSize="14sp" android:textSize="14sp"
tools:text="Władca Androida" tools:text="Władca Androida"
@ -48,10 +44,7 @@
android:id="@+id/widgetLuckyNumberTextRight" android:id="@+id/widgetLuckyNumberTextRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="12dp" android:paddingHorizontal="12dp"
android:paddingLeft="12dp"
android:paddingEnd="12dp"
android:paddingRight="12dp"
android:textColor="@color/primaryTextLight" android:textColor="@color/primaryTextLight"
android:textSize="24sp" android:textSize="24sp"
tools:text="24" /> tools:text="24" />

View File

@ -1,5 +1,4 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widgetLuckyNumberRoot" android:id="@+id/widgetLuckyNumberRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -30,10 +29,7 @@
android:id="@+id/widgetLuckyNumberProfileRight" android:id="@+id/widgetLuckyNumberProfileRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingLeft="8dp"
android:paddingEnd="8dp"
android:paddingRight="8dp"
android:textColor="@color/primaryTextDark" android:textColor="@color/primaryTextDark"
android:textSize="11sp" android:textSize="11sp"
tools:text="Władca Androida" tools:text="Władca Androida"
@ -48,10 +44,7 @@
android:id="@+id/widgetLuckyNumberTextRight" android:id="@+id/widgetLuckyNumberTextRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="8dp" android:paddingHorizontal="8dp"
android:paddingLeft="8dp"
android:paddingEnd="8dp"
android:paddingRight="8dp"
android:textColor="@color/primaryTextDark" android:textColor="@color/primaryTextDark"
android:textSize="16sp" android:textSize="16sp"
tools:text="24" /> tools:text="24" />

View File

@ -1,5 +1,4 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widgetLuckyNumberRoot" android:id="@+id/widgetLuckyNumberRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -30,10 +29,7 @@
android:id="@+id/widgetLuckyNumberProfileRight" android:id="@+id/widgetLuckyNumberProfileRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="12dp" android:paddingHorizontal="12dp"
android:paddingLeft="12dp"
android:paddingEnd="12dp"
android:paddingRight="12dp"
android:textColor="@color/primaryTextDark" android:textColor="@color/primaryTextDark"
android:textSize="14sp" android:textSize="14sp"
tools:text="Władca Androida" tools:text="Władca Androida"
@ -48,10 +44,7 @@
android:id="@+id/widgetLuckyNumberTextRight" android:id="@+id/widgetLuckyNumberTextRight"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="12dp" android:paddingHorizontal="12dp"
android:paddingLeft="12dp"
android:paddingEnd="12dp"
android:paddingRight="12dp"
android:textColor="@color/primaryTextDark" android:textColor="@color/primaryTextDark"
android:textSize="24sp" android:textSize="24sp"
tools:text="24" /> tools:text="24" />