diff --git a/changelog.d/5856.bugfix b/changelog.d/5856.bugfix new file mode 100644 index 0000000000..87f10ac9b2 --- /dev/null +++ b/changelog.d/5856.bugfix @@ -0,0 +1 @@ +Use fixed text size in read receipt counter diff --git a/library/ui-styles/src/main/res/values/styles_timeline.xml b/library/ui-styles/src/main/res/values/styles_timeline.xml index c86eeb8efb..20c375c2d6 100644 --- a/library/ui-styles/src/main/res/values/styles_timeline.xml +++ b/library/ui-styles/src/main/res/values/styles_timeline.xml @@ -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> \ No newline at end of file +</resources> diff --git a/vector/src/main/res/layout/view_read_receipts.xml b/vector/src/main/res/layout/view_read_receipts.xml index 907f1ec0e3..11fdeb74d5 100644 --- a/vector/src/main/res/layout/view_read_receipts.xml +++ b/vector/src/main/res/layout/view_read_receipts.xml @@ -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"