Extract text size to style

This commit is contained in:
Olivér Falvai 2022-04-28 19:02:48 +02:00
parent 3b2e61fa66
commit 042ec3628f
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="TimelineContentStubBaseParams">
<item name="android:layout_width">match_parent</item>
@ -33,5 +33,8 @@
<item name="android:gravity">center</item>
</style>
<style name="TimelineFixedSizeCaptionStyle" parent="@style/Widget.Vector.TextView.Caption">
<item name="android:textSize" tools:ignore="SpUsage">12dp</item>
</style>
</resources>
</resources>

View File

@ -7,7 +7,7 @@
<TextView
android:id="@+id/receiptMore"
style="@style/Widget.Vector.TextView.Caption"
style="@style/TimelineFixedSizeCaptionStyle"
android:layout_width="wrap_content"
android:layout_height="@dimen/item_event_message_state_size"
android:background="@drawable/pill_receipt"
@ -16,8 +16,6 @@
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:textColor="?vctr_content_primary"
android:textSize="12dp"
tools:ignore="SpUsage"
tools:text="999+" />
<ImageView