From 41462610696abb30b4e65802dc1092f4645597c2 Mon Sep 17 00:00:00 2001 From: lynxnb Date: Wed, 16 Feb 2022 01:51:41 +0100 Subject: [PATCH] Create a unified style for section titles --- app/src/main/res/layout/section_item.xml | 9 +++------ app/src/main/res/values/styles.xml | 4 ++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/section_item.xml b/app/src/main/res/layout/section_item.xml index f1cc8a2f..973ec088 100644 --- a/app/src/main/res/layout/section_item.xml +++ b/app/src/main/res/layout/section_item.xml @@ -4,12 +4,9 @@ android:id="@+id/text_title" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="8dp" + android:layout_marginHorizontal="16dp" + android:layout_marginVertical="8dp" android:textAlignment="viewStart" - android:textColor="?android:attr/textColorPrimary" + android:textAppearance="@style/SectionTitle" android:textSize="18sp" - android:textStyle="bold" tools:text="NSP" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index d1b5e004..30732543 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,5 +1,9 @@ + +