fix ellipsize in item_account (#1269)

This commit is contained in:
Konrad Pozniak 2019-05-19 21:11:36 +02:00 committed by GitHub
parent 2d44c39063
commit 51a34271fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -33,23 +33,24 @@
<androidx.emoji.widget.EmojiTextView <androidx.emoji.widget.EmojiTextView
android:id="@+id/account_display_name" android:id="@+id/account_display_name"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="14dp" android:layout_marginStart="14dp"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
app:layout_constraintVertical_chainStyle="packed"
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
android:textSize="?attr/status_text_large" android:textSize="?attr/status_text_large"
android:textStyle="normal|bold" android:textStyle="normal|bold"
app:layout_constraintBottom_toTopOf="@id/account_username" app:layout_constraintBottom_toTopOf="@id/account_username"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/account_avatar" app:layout_constraintStart_toEndOf="@id/account_avatar"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Display name" /> tools:text="Display name" />
<TextView <TextView
android:id="@+id/account_username" android:id="@+id/account_username"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="14dp" android:layout_marginStart="14dp"
android:ellipsize="end" android:ellipsize="end"
@ -57,6 +58,7 @@
android:textColor="?android:textColorSecondary" android:textColor="?android:textColorSecondary"
android:textSize="?attr/status_text_medium" android:textSize="?attr/status_text_medium"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/account_avatar" app:layout_constraintStart_toEndOf="@id/account_avatar"
app:layout_constraintTop_toBottomOf="@id/account_display_name" app:layout_constraintTop_toBottomOf="@id/account_display_name"
tools:text="\@username" /> tools:text="\@username" />