diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-09-15 10:06:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 10:06:58 +0200 |
commit | 43902d72343ca9e98b0ce2b2ab1fb40d31d6f39f (patch) | |
tree | b926ab5a65c40a9b336d5ba63d8f3508d49488de | |
parent | 6b189a0d472a523caf6de313b13eea23b466a278 (diff) | |
download | AntennaPod-43902d72343ca9e98b0ce2b2ab1fb40d31d6f39f.zip |
Use Material3 font styles on home page (#7404)
-rw-r--r-- | app/src/main/res/layout/home_section.xml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/src/main/res/layout/home_section.xml b/app/src/main/res/layout/home_section.xml index 3064b7d44..ad5222452 100644 --- a/app/src/main/res/layout/home_section.xml +++ b/app/src/main/res/layout/home_section.xml @@ -8,6 +8,7 @@ android:layout_centerInParent="true" android:gravity="center" android:orientation="vertical" + android:paddingTop="8dp" android:paddingBottom="4dp"> <TextView @@ -16,9 +17,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:textAlignment="textStart" - android:textColor="?android:attr/textColorPrimary" - android:textSize="18sp" - android:layout_marginVertical="8dp" + android:layout_marginVertical="4dp" android:accessibilityHeading="true" app:layout_constraintWidth_max="wrap" app:layout_constraintWidth_percent="0.6" @@ -29,13 +28,14 @@ app:layout_constraintHorizontal_bias="0" app:layout_constraintWidth_default="wrap" app:layout_constraintEnd_toStartOf="@id/shuffleButton" + style="@style/TextAppearance.Material3.TitleMedium" tools:text="Title" /> <ImageButton android:id="@+id/shuffleButton" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginVertical="8dp" + android:layout_marginVertical="4dp" android:layout_marginStart="8dp" android:layout_marginLeft="8dp" android:background="?attr/selectableItemBackgroundBorderless" @@ -53,15 +53,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" - android:layout_marginTop="12dp" - android:layout_marginBottom="10dp" + android:layout_marginTop="2dp" + android:layout_marginBottom="0dp" android:paddingBottom="1sp" android:background="@drawable/bg_pill" android:paddingHorizontal="8dp" android:textAlignment="center" android:textColor="?attr/colorPrimary" - android:textSize="16sp" android:visibility="gone" + style="@style/TextAppearance.Material3.TitleMedium" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="@id/barrier" app:layout_constraintStart_toEndOf="@id/shuffleButton" @@ -74,7 +74,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:minWidth="0dp" - android:paddingVertical="0dp" + android:minHeight="0dp" + android:paddingVertical="4dp" android:layout_marginEnd="16dp" android:layout_marginStart="16dp" android:textAlignment="textEnd" |