fix: Ensure trending tag name is fully visible (#831)

Previously re-binding the tag's text wouldn't re-measure the layout when
the text changed. So scrolling down a longer tag could be placed in a
textview that previously held a shorter tag.

Then it was cut off and the user couldn't see what the tag was. Use
`wrap_content` so size is measured when the content changes.
This commit is contained in:
Nik Clayton 2024-07-22 17:27:52 +02:00 committed by GitHub
parent 71e006b0d2
commit ae8584422c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
<TextView <TextView
android:id="@+id/tag" android:id="@+id/tag"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:importantForAccessibility="no" android:importantForAccessibility="no"