Use 0dp (match constraints) as width for text view

Previously, the text was using `wrap_content`, which could cause cropping or overflow in certain language configurations

See https://github.com/FossifyOrg/Messages/issues/325
This commit is contained in:
Naveen Singh 2025-03-23 18:08:38 +05:30
parent 6b9376f79e
commit 6f8b9e5e8f
No known key found for this signature in database
GPG key ID: AF5D43C216778C0B

View file

@ -3,17 +3,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingHorizontal="@dimen/normal_margin"> android:paddingHorizontal="@dimen/normal_margin">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/reply_disabled_text" android:id="@+id/reply_disabled_text"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_gravity="center_vertical|end"
android:clickable="true"
android:focusable="true"
android:padding="@dimen/activity_margin" android:padding="@dimen/activity_margin"
android:text="@string/invalid_short_code" android:text="@string/invalid_short_code"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"