Skip to content

Commit 390ecba

Browse files
committed
Ellipsize text properly in search cards
1 parent 7579060 commit 390ecba

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/src/main/res/layout/feed_app_card.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
android:layout_height="wrap_content"
6161
android:layout_marginTop="3dp"
6262
android:layout_marginEnd="5dp"
63-
android:maxLines="1"
6463
android:ellipsize="end"
64+
android:maxLines="1"
6565
android:text="PackageName"
6666
android:textSize="12sp"
6767
app:layout_constraintHorizontal_bias="0.0"

app/src/main/res/layout/search_app_card.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
<TextView
6161
android:id="@+id/appName"
62-
android:layout_width="150dp"
62+
android:layout_width="200dp"
6363
android:layout_height="wrap_content"
6464
android:ellipsize="end"
6565
android:maxLines="1"
@@ -68,9 +68,11 @@
6868

6969
<TextView
7070
android:id="@+id/packageName"
71-
android:layout_width="wrap_content"
71+
android:layout_width="200dp"
7272
android:layout_height="wrap_content"
7373
android:text="PackageName"
74+
android:maxLines="1"
75+
android:ellipsize="end"
7476
android:textSize="12sp"
7577
app:layout_constraintStart_toStartOf="@+id/appName"
7678
app:layout_constraintTop_toBottomOf="@+id/appName" />

0 commit comments

Comments
 (0)