fix: Ensure suggested account information is not cut off (#1030)
Previous layout didn't constraint the metadata elements to the parent's edge, so could run off the screen if the content was too long. Constrain them so the content wraps correctly. Fixes #876
This commit is contained in:
parent
a43ebab69b
commit
ffb585b349
|
@ -128,23 +128,25 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/follows_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textSize="?attr/status_text_small"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:importantForAccessibility="no"
|
||||
android:textSize="?attr/status_text_small"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/follower_count"
|
||||
app:layout_constraintTop_toBottomOf="@id/account_note"
|
||||
tools:text="46 follows" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/statuses_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textSize="?attr/status_text_small"
|
||||
android:importantForAccessibility="no"
|
||||
android:textSize="?attr/status_text_small"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/follower_count"
|
||||
app:layout_constraintTop_toBottomOf="@id/follower_count"
|
||||
tools:text="46 posts (4.6 per week)" />
|
||||
|
|
Loading…
Reference in New Issue