[Layout] Migrate marginTop/marginBottom to marginVertical.

This commit is contained in:
Kuba Szczodrzyński 2021-03-25 12:51:37 +01:00
parent 37879ca07e
commit 6c4a1b54ba
22 changed files with 36 additions and 72 deletions

View File

@ -7,7 +7,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp"
android:layout_marginBottom="8dp"
android:clickable="true" android:clickable="true"
android:focusable="true" /> android:focusable="true" />

View File

@ -205,8 +205,7 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginTop="4dp" android:layout_marginVertical="4dp"
android:layout_marginBottom="4dp"
android:background="@color/dividerColor" /> android:background="@color/dividerColor" />
<LinearLayout <LinearLayout
@ -258,8 +257,7 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginTop="4dp" android:layout_marginVertical="4dp"
android:layout_marginBottom="4dp"
android:background="@color/dividerColor" /> android:background="@color/dividerColor" />
<TextView <TextView

View File

@ -19,8 +19,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginVertical="16dp"
android:layout_marginBottom="10dp"
style="@style/TextAppearance.AppCompat.Small" style="@style/TextAppearance.AppCompat.Small"
android:text="@string/grades_config_title"/> android:text="@string/grades_config_title"/>
@ -140,8 +139,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginVertical="4dp"
android:layout_marginBottom="4dp"
style="@style/TextAppearance.AppCompat.Small" style="@style/TextAppearance.AppCompat.Small"
android:text="@string/menu_grades_sort_mode"/> android:text="@string/menu_grades_sort_mode"/>

View File

@ -53,8 +53,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp" android:layout_marginHorizontal="8dp"
android:layout_marginTop="5dp" android:layout_marginVertical="5dp"
android:layout_marginBottom="5dp"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" /> tools:visibility="visible" />
</LinearLayout> </LinearLayout>
@ -71,8 +70,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp" android:layout_marginHorizontal="8dp"
android:layout_marginTop="5dp" android:layout_marginVertical="5dp"
android:layout_marginBottom="5dp"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" /> tools:visibility="visible" />
</LinearLayout> </LinearLayout>

View File

@ -17,8 +17,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:layout_marginTop="5dp" android:layout_marginVertical="5dp"
android:layout_marginBottom="5dp"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" /> tools:visibility="visible" />
@ -28,8 +27,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:layout_marginTop="5dp" android:layout_marginVertical="5dp"
android:layout_marginBottom="5dp"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" /> tools:visibility="visible" />

View File

@ -103,8 +103,7 @@
android:id="@+id/chatLayout" android:id="@+id/chatLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp"
android:layout_marginBottom="8dp"
android:orientation="vertical" android:orientation="vertical"
android:visibility="visible"> android:visibility="visible">
@ -119,8 +118,7 @@
android:id="@+id/chat_view" android:id="@+id/chat_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp" />
android:layout_marginBottom="8dp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -138,8 +138,7 @@
android:id="@+id/body" android:id="@+id/body"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp"
android:layout_marginBottom="8dp"
android:minHeight="250dp" android:minHeight="250dp"
android:paddingHorizontal="16dp" android:paddingHorizontal="16dp"
android:textIsSelectable="true" android:textIsSelectable="true"

View File

@ -153,8 +153,7 @@
android:id="@+id/messageBody" android:id="@+id/messageBody"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp"
android:layout_marginBottom="8dp"
android:autoLink="all" android:autoLink="all"
android:minHeight="250dp" android:minHeight="250dp"
android:paddingHorizontal="16dp" android:paddingHorizontal="16dp"

View File

@ -70,10 +70,9 @@
android:id="@+id/attendanceTime" android:id="@+id/attendanceTime"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="0dp" android:layout_marginVertical="0dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginBottom="0dp"
android:textAppearance="@style/NavView.TextView.Helper" android:textAppearance="@style/NavView.TextView.Helper"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

View File

@ -11,8 +11,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp" android:layout_marginHorizontal="8dp"
android:layout_marginTop="4dp" android:layout_marginVertical="4dp"
android:layout_marginBottom="4dp"
android:background="?selectableItemBackground" android:background="?selectableItemBackground"
app:cardCornerRadius="5dp" app:cardCornerRadius="5dp"
app:cardElevation="4dp"> app:cardElevation="4dp">

View File

@ -15,8 +15,7 @@
android:id="@+id/checkBox" android:id="@+id/checkBox"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp" />
android:layout_marginBottom="8dp" />
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"

View File

@ -33,8 +33,7 @@
android:id="@+id/noticesItemType" android:id="@+id/noticesItemType"
android:layout_width="36dp" android:layout_width="36dp"
android:layout_height="36dp" android:layout_height="36dp"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:srcCompat="@tools:sample/avatars" /> tools:srcCompat="@tools:sample/avatars" />

View File

@ -11,8 +11,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp" android:layout_marginHorizontal="8dp"
android:layout_marginTop="4dp" android:layout_marginVertical="4dp"
android:layout_marginBottom="4dp"
android:background="?selectableItemBackground" android:background="?selectableItemBackground"
app:cardCornerRadius="5dp" app:cardCornerRadius="5dp"
app:cardElevation="4dp"> app:cardElevation="4dp">
@ -142,8 +141,7 @@
<com.mikepenz.iconics.view.IconicsTextView <com.mikepenz.iconics.view.IconicsTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginVertical="8dp"
android:layout_marginBottom="8dp"
android:text="{cmd-clock}" android:text="{cmd-clock}"
app:layout_constraintBottom_toTopOf="@+id/timetableItemEndTime" app:layout_constraintBottom_toTopOf="@+id/timetableItemEndTime"
app:layout_constraintEnd_toEndOf="@+id/timetableItemEndTime" app:layout_constraintEnd_toEndOf="@+id/timetableItemEndTime"

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<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/widgetNotificationsRoot" android:id="@+id/widgetNotificationsRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -11,8 +10,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginBottom="2dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginStart="8dp"> android:layout_marginStart="8dp">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<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/widgetNotificationsRoot" android:id="@+id/widgetNotificationsRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -11,8 +10,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginBottom="2dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginStart="8dp"> android:layout_marginStart="8dp">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<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/widgetNotificationsRoot" android:id="@+id/widgetNotificationsRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -11,8 +10,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginBottom="2dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginStart="8dp"> android:layout_marginStart="8dp">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<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/widgetNotificationsRoot" android:id="@+id/widgetNotificationsRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -11,8 +10,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginBottom="2dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginStart="8dp"> android:layout_marginStart="8dp">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout 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/widgetTimetableRoot" android:id="@+id/widgetTimetableRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -46,10 +45,9 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginBottom="2dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout 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/widgetTimetableRoot" android:id="@+id/widgetTimetableRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -46,10 +45,9 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginBottom="2dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout 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/widgetTimetableRoot" android:id="@+id/widgetTimetableRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -45,10 +44,9 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginBottom="2dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout 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/widgetTimetableRoot" android:id="@+id/widgetTimetableRoot"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -45,10 +44,9 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:layout_marginVertical="2dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginBottom="2dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView

View File

@ -57,8 +57,7 @@
android:id="@+id/subjectName" android:id="@+id/subjectName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginVertical="4dp"
android:layout_marginBottom="4dp"
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"