Skip to content

Commit

Permalink
Introduce textAppearanceLabelExtraLarge attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed May 4, 2023
1 parent 35315b3 commit 5f4026e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 2 additions & 4 deletions collect_app/src/main/res/layout/main_menu_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
android:layout_marginHorizontal="@dimen/margin_standard"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="?textAppearanceLabelLarge"
android:textSize="18sp"
android:textAppearance="?textAppearanceLabelExtraLarge"
app:layout_constraintBottom_toBottomOf="@id/icon"
app:layout_constraintEnd_toStartOf="@+id/number"
app:layout_constraintStart_toEndOf="@id/icon"
Expand All @@ -41,8 +40,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/margin_extra_large"
android:textAppearance="?textAppearanceLabelLarge"
android:textSize="18sp"
android:textAppearance="?textAppearanceLabelExtraLarge"
app:layout_constraintBottom_toBottomOf="@id/name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/name"
Expand Down
3 changes: 1 addition & 2 deletions collect_app/src/main/res/layout/start_new_from_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_standard"
android:ellipsize="end"
android:textAppearance="?textAppearanceLabelLarge"
android:textSize="18sp"
android:textAppearance="?textAppearanceLabelExtraLarge"
android:maxLines="1"
android:textColor="?colorOnPrimary"
android:text="@string/enter_data"
Expand Down
4 changes: 4 additions & 0 deletions collect_app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
<declare-styleable name="Material3PolyFill">
<attr name="colorSurfaceContainerLow" format="color" />
</declare-styleable>

<declare-styleable name="Material3">
<attr name="textAppearanceLabelExtraLarge" format="reference" />
</declare-styleable>
</resources>
3 changes: 3 additions & 0 deletions collect_app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TextAppearanceLabelExtraLarge" parent="TextAppearance.Material3.LabelLarge">
<item name="android:textSize">18sp</item>
</style>

<style name="Widget.Collect.TextView.Empty" parent="Widget.AppCompat.TextView">
<item name="android:layout_width">match_parent</item>
Expand Down
1 change: 1 addition & 0 deletions collect_app/src/main/res/values/theme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

<item name="textAppearanceBodyLarge">?textAppearanceBody1</item>
<item name="textAppearanceLabelLarge">@style/TextAppearance.Material3.LabelLarge</item>
<item name="textAppearanceLabelExtraLarge">@style/TextAppearanceLabelExtraLarge</item>
<item name="textAppearanceTitleLarge">@style/TextAppearance.Material3.TitleLarge</item>

<item name="shapeAppearanceCornerMedium">@style/ShapeAppearance.Material3.Corner.Medium</item>
Expand Down

0 comments on commit 5f4026e

Please sign in to comment.