Create a unified style for section titles

This commit is contained in:
lynxnb 2022-02-16 01:51:41 +01:00
parent 8d56fa3194
commit c5797fdff6
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/text_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -7,6 +8,6 @@
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="@style/SectionTitle"
android:textSize="18sp"
android:textStyle="bold" />
tools:text="NSP" />

View File

@ -1,6 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="SectionTitle" parent="TextAppearance.MaterialComponents.Headline6">
<item name="android:textSize">16sp</item>
</style>
<style name="SectionTitle.Attribute" parent="TextAppearance.MaterialComponents.Subtitle2">
<item name="android:textColor">@android:color/tertiary_text_light</item>
</style>
<style name="ShapeAppearance.App.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/corner_radius</item>