Skip to content

Commit 3fe9e31

Browse files
msfjarviszx2c4
authored andcommitted
tv: tweak TV layout to fit 3 rows better
Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 6da6f78 commit 3fe9e31

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

ui/src/main/res/layout/tv_tunnel_list_item.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,23 @@
2626

2727
<!-- Rather than changing the background tint to red for deleting mode, it should instead just change the selection color -->
2828
<com.google.android.material.card.MaterialCardView
29-
android:layout_width="280dp"
30-
android:layout_height="130dp"
29+
android:layout_width="260dp"
30+
android:layout_height="110dp"
3131
android:layout_margin="8dp"
32+
android:layout_marginTop="4dp"
33+
android:layout_marginBottom="0dp"
3234
android:backgroundTint="@{isDeleting ? @color/error_tag_color : item.state == State.UP ? @color/secondary_dark_color : @color/tv_card_background}"
3335
android:checkable="true"
34-
android:focusable="true">
36+
android:focusable="true"
37+
app:contentPadding="8dp">
3538

3639
<androidx.constraintlayout.widget.ConstraintLayout
3740
android:layout_width="match_parent"
38-
android:layout_height="match_parent"
39-
android:padding="16dp">
41+
android:layout_height="match_parent">
4042

4143
<com.google.android.material.textview.MaterialTextView
4244
android:id="@+id/tunnel_name"
43-
style="@style/TextAppearance.MaterialComponents.Headline4"
45+
style="@style/TextAppearance.MaterialComponents.Headline5"
4446
android:layout_width="wrap_content"
4547
android:layout_height="wrap_content"
4648
android:text="@{item.name}"

0 commit comments

Comments
 (0)