Create a unified style for section titles

This commit is contained in:
lynxnb 2022-02-16 01:51:41 +01:00 committed by Mark Collins
parent 86364a84a2
commit 4146261069
2 changed files with 7 additions and 6 deletions

View File

@ -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" />

View File

@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="SectionTitle" parent="TextAppearance.MaterialComponents.Headline6">
<item name="android:textSize">16sp</item>
</style>
<style name="ShapeAppearance.App.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/cornerRadius</item>