Skip to content

Commit

Permalink
Limit max lines for transaction list item path and host (#312)
Browse files Browse the repository at this point in the history
* Limit max lines for transaction list item path and host
* Add missing ellipsize attribute to toolbar titles
  • Loading branch information
vbuberen authored Apr 7, 2020
1 parent 9106c3c commit 505f23c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/src/main/res/layout/chucker_list_item_transaction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
android:id="@+id/path"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="4"
android:textAppearance="@style/Chucker.TextAppearance.ListItem"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/code"
Expand All @@ -40,6 +42,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/chucker_half_grid"
android:ellipsize="end"
android:maxLines="2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ssl"
app:layout_constraintTop_toBottomOf="@+id/path"
Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
<style name="Chucker.TextAppearance.Title" parent="TextAppearance.MaterialComponents.Headline6">
<item name="android:textSize">16sp</item>
<item name="android:maxLines">2</item>
<item name="android:ellipsize">end</item>
</style>
</resources>

0 comments on commit 505f23c

Please sign in to comment.