summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/res/layout/card_game.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/app/src/main/res/layout/card_game.xml')
-rw-r--r--src/android/app/src/main/res/layout/card_game.xml23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/android/app/src/main/res/layout/card_game.xml b/src/android/app/src/main/res/layout/card_game.xml
index a0d453719..a107fec0f 100644
--- a/src/android/app/src/main/res/layout/card_game.xml
+++ b/src/android/app/src/main/res/layout/card_game.xml
@@ -5,7 +5,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="?attr/selectableItemBackground"
+ android:foreground="?attr/selectableItemBackground"
android:clickable="true"
android:clipToPadding="false"
android:focusable="true"
@@ -15,7 +15,8 @@
android:paddingBottom="8dp"
android:transitionName="card_game">
- <androidx.cardview.widget.CardView
+ <com.google.android.material.card.MaterialCardView
+ style="?attr/materialCardViewElevatedStyle"
android:id="@+id/card_game_art"
android:layout_width="150dp"
android:layout_height="150dp"
@@ -32,24 +33,24 @@
<TextView
android:id="@+id/text_game_title_inner"
- style="@android:style/TextAppearance.Material.Subhead"
+ style="@style/TextAppearance.Material3.BodyLarge"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ellipsize="end"
- android:gravity="center|top"
+ android:gravity="center"
android:maxLines="2"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:paddingTop="8dp"
android:visibility="visible"
- tools:text="The Legend of Zelda: The Wind Waker" />
+ tools:text="Super Mario Odyssey" />
- </androidx.cardview.widget.CardView>
+ </com.google.android.material.card.MaterialCardView>
<TextView
android:id="@+id/text_game_title"
- style="@android:style/TextAppearance.Material.Subhead"
- android:layout_width="150dp"
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
@@ -57,12 +58,12 @@
app:layout_constraintEnd_toEndOf="@+id/card_game_art"
app:layout_constraintStart_toStartOf="@+id/card_game_art"
app:layout_constraintTop_toBottomOf="@+id/card_game_art"
- tools:text="The Legend of Zelda: The Wind Waker" />
+ tools:text="Super Mario Odyssey" />
<TextView
android:id="@+id/text_game_caption"
- style="@android:style/TextAppearance.Material.Caption"
- android:layout_width="150dp"
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"