Skip to content

Commit

Permalink
Fix Insights Adapter item text clashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and alan-signal committed Nov 13, 2019
1 parent c702ff6 commit c587057
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions res/layout/insights_dashboard_adapter_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,33 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
android:id="@+id/recipient_display_name"
android:layout_width="wrap_content"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_marginStart="9dp"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextAppearance.Signal.Title.Insights"
app:layout_constraintBottom_toTopOf="@id/recipient_insecure_contribution"
app:layout_constraintEnd_toStartOf="@id/recipient_invite"
app:layout_constraintStart_toEndOf="@id/recipient_avatar"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Cayce Pollard" />
tools:text="Cayce Pollard (This is a long name to make sure we stick within our bounds)" />

<TextView
android:id="@+id/recipient_insecure_contribution"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="9dp"
android:layout_marginTop="1dp"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/InsightsDashboardFragment__not_using_signal_yet"
android:textAppearance="@style/TextAppearance.Signal.Body.Insights"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/recipient_invite"
app:layout_constraintStart_toEndOf="@id/recipient_avatar"
app:layout_constraintTop_toBottomOf="@id/recipient_display_name"
app:layout_constraintVertical_chainStyle="packed" />
Expand Down

0 comments on commit c587057

Please sign in to comment.