|
26 | 26 |
|
27 | 27 | <!-- Rather than changing the background tint to red for deleting mode, it should instead just change the selection color -->
|
28 | 28 | <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" |
31 | 31 | android:layout_margin="8dp"
|
| 32 | + android:layout_marginTop="4dp" |
| 33 | + android:layout_marginBottom="0dp" |
32 | 34 | android:backgroundTint="@{isDeleting ? @color/error_tag_color : item.state == State.UP ? @color/secondary_dark_color : @color/tv_card_background}"
|
33 | 35 | android:checkable="true"
|
34 |
| - android:focusable="true"> |
| 36 | + android:focusable="true" |
| 37 | + app:contentPadding="8dp"> |
35 | 38 |
|
36 | 39 | <androidx.constraintlayout.widget.ConstraintLayout
|
37 | 40 | android:layout_width="match_parent"
|
38 |
| - android:layout_height="match_parent" |
39 |
| - android:padding="16dp"> |
| 41 | + android:layout_height="match_parent"> |
40 | 42 |
|
41 | 43 | <com.google.android.material.textview.MaterialTextView
|
42 | 44 | android:id="@+id/tunnel_name"
|
43 |
| - style="@style/TextAppearance.MaterialComponents.Headline4" |
| 45 | + style="@style/TextAppearance.MaterialComponents.Headline5" |
44 | 46 | android:layout_width="wrap_content"
|
45 | 47 | android:layout_height="wrap_content"
|
46 | 48 | android:text="@{item.name}"
|
|
0 commit comments