diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/android/app/src/main/res/layout/card_game.xml | 45 |
1 files changed, 18 insertions, 27 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 1f5de219b..6340171ec 100644 --- a/src/android/app/src/main/res/layout/card_game.xml +++ b/src/android/app/src/main/res/layout/card_game.xml | |||
| @@ -1,63 +1,54 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <FrameLayout | 2 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | xmlns:app="http://schemas.android.com/apk/res-auto" | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | xmlns:tools="http://schemas.android.com/tools" | 4 | xmlns:tools="http://schemas.android.com/tools" |
| 6 | android:layout_width="match_parent" | 5 | android:layout_width="match_parent" |
| 7 | android:layout_height="wrap_content"> | 6 | android:layout_height="wrap_content"> |
| 8 | 7 | ||
| 9 | <com.google.android.material.card.MaterialCardView | 8 | <com.google.android.material.card.MaterialCardView |
| 10 | style="?attr/materialCardViewElevatedStyle" | ||
| 11 | android:id="@+id/card_game" | 9 | android:id="@+id/card_game" |
| 10 | style="?attr/materialCardViewElevatedStyle" | ||
| 12 | android:layout_width="wrap_content" | 11 | android:layout_width="wrap_content" |
| 13 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | android:layout_gravity="center" | ||
| 14 | android:background="?attr/selectableItemBackground" | 14 | android:background="?attr/selectableItemBackground" |
| 15 | android:clickable="true" | 15 | android:clickable="true" |
| 16 | android:clipToPadding="false" | 16 | android:clipToPadding="false" |
| 17 | android:focusable="true" | 17 | android:focusable="true" |
| 18 | android:transitionName="card_game" | 18 | android:transitionName="card_game" |
| 19 | android:layout_gravity="center" | 19 | app:cardCornerRadius="4dp" |
| 20 | app:cardElevation="0dp" | 20 | app:cardElevation="0dp"> |
| 21 | app:cardCornerRadius="12dp"> | ||
| 22 | 21 | ||
| 23 | <androidx.constraintlayout.widget.ConstraintLayout | 22 | <androidx.constraintlayout.widget.ConstraintLayout |
| 24 | android:layout_width="wrap_content" | 23 | android:layout_width="wrap_content" |
| 25 | android:layout_height="wrap_content" | 24 | android:layout_height="wrap_content" |
| 26 | android:padding="6dp"> | 25 | android:padding="6dp"> |
| 27 | 26 | ||
| 28 | <com.google.android.material.card.MaterialCardView | 27 | <com.google.android.material.imageview.ShapeableImageView |
| 29 | style="?attr/materialCardViewElevatedStyle" | 28 | android:id="@+id/image_game_screen" |
| 30 | android:id="@+id/card_game_art" | ||
| 31 | android:layout_width="150dp" | 29 | android:layout_width="150dp" |
| 32 | android:layout_height="150dp" | 30 | android:layout_height="150dp" |
| 33 | app:cardCornerRadius="4dp" | ||
| 34 | app:layout_constraintEnd_toEndOf="parent" | 31 | app:layout_constraintEnd_toEndOf="parent" |
| 35 | app:layout_constraintStart_toStartOf="parent" | 32 | app:layout_constraintStart_toStartOf="parent" |
| 36 | app:layout_constraintTop_toTopOf="parent"> | 33 | app:layout_constraintTop_toTopOf="parent" |
| 37 | 34 | app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.ExtraSmall" | |
| 38 | <ImageView | 35 | tools:src="@drawable/default_icon" /> |
| 39 | android:id="@+id/image_game_screen" | ||
| 40 | android:layout_width="match_parent" | ||
| 41 | android:layout_height="match_parent" | ||
| 42 | tools:src="@drawable/default_icon" /> | ||
| 43 | |||
| 44 | </com.google.android.material.card.MaterialCardView> | ||
| 45 | 36 | ||
| 46 | <com.google.android.material.textview.MaterialTextView | 37 | <com.google.android.material.textview.MaterialTextView |
| 47 | style="@style/TextAppearance.Material3.TitleMedium" | ||
| 48 | android:id="@+id/text_game_title" | 38 | android:id="@+id/text_game_title" |
| 39 | style="@style/TextAppearance.Material3.TitleMedium" | ||
| 49 | android:layout_width="0dp" | 40 | android:layout_width="0dp" |
| 50 | android:layout_height="wrap_content" | 41 | android:layout_height="wrap_content" |
| 51 | android:layout_marginTop="8dp" | 42 | android:layout_marginTop="8dp" |
| 52 | android:textAlignment="center" | ||
| 53 | android:textSize="14sp" | ||
| 54 | android:singleLine="true" | ||
| 55 | android:marqueeRepeatLimit="marquee_forever" | ||
| 56 | android:ellipsize="none" | 43 | android:ellipsize="none" |
| 44 | android:marqueeRepeatLimit="marquee_forever" | ||
| 57 | android:requiresFadingEdge="horizontal" | 45 | android:requiresFadingEdge="horizontal" |
| 58 | app:layout_constraintEnd_toEndOf="@+id/card_game_art" | 46 | android:singleLine="true" |
| 59 | app:layout_constraintStart_toStartOf="@+id/card_game_art" | 47 | android:textAlignment="center" |
| 60 | app:layout_constraintTop_toBottomOf="@+id/card_game_art" | 48 | android:textSize="14sp" |
| 49 | app:layout_constraintEnd_toEndOf="@+id/image_game_screen" | ||
| 50 | app:layout_constraintStart_toStartOf="@+id/image_game_screen" | ||
| 51 | app:layout_constraintTop_toBottomOf="@+id/image_game_screen" | ||
| 61 | tools:text="The Legend of Zelda: Skyward Sword" /> | 52 | tools:text="The Legend of Zelda: Skyward Sword" /> |
| 62 | 53 | ||
| 63 | </androidx.constraintlayout.widget.ConstraintLayout> | 54 | </androidx.constraintlayout.widget.ConstraintLayout> |