2020-04-12 22:23:03 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-02-09 16:11:56 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:nextFocusRight="@id/game_play"
|
|
|
|
android:padding="16dp">
|
2020-04-12 22:23:03 +02:00
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
2021-02-09 16:11:56 +01:00
|
|
|
android:id="@+id/game_icon"
|
|
|
|
android:layout_width="150dp"
|
|
|
|
android:layout_height="150dp"
|
|
|
|
android:contentDescription="@string/icon"
|
|
|
|
android:focusable="false"
|
2022-01-21 19:25:46 +01:00
|
|
|
app:shapeAppearance="?attr/shapeAppearanceMediumComponent"
|
2021-02-09 16:11:56 +01:00
|
|
|
tools:src="@drawable/default_icon" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2021-10-11 17:33:38 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_width="wrap_content"
|
2021-10-11 17:33:38 +02:00
|
|
|
android:layout_height="match_parent"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/game_title"
|
2020-04-12 22:23:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-07-30 13:22:01 +02:00
|
|
|
android:textAlignment="viewStart"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
|
|
android:textSize="18sp"
|
2021-10-11 17:33:38 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-07-30 13:22:01 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-10-11 17:33:38 +02:00
|
|
|
tools:text="The Legend of Zelda: Breath of the Wild" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
|
|
|
<TextView
|
2022-08-21 13:40:32 +02:00
|
|
|
android:id="@+id/game_version"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
|
|
android:textColor="@android:color/tertiary_text_light"
|
2022-08-21 13:40:32 +02:00
|
|
|
android:textSize="12sp"
|
2021-10-11 17:33:38 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@id/game_title"
|
2022-07-30 13:22:01 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_title"
|
2022-08-21 13:40:32 +02:00
|
|
|
tools:text="Version" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2022-08-07 03:52:14 +02:00
|
|
|
<TextView
|
2022-08-25 15:02:15 +02:00
|
|
|
android:id="@+id/game_author"
|
2022-08-07 03:52:14 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
|
|
android:textColor="@android:color/tertiary_text_light"
|
2022-08-21 13:40:32 +02:00
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/game_version"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_version"
|
2022-08-07 03:52:14 +02:00
|
|
|
tools:layout_editor_absoluteY="64dp"
|
2022-08-21 13:40:32 +02:00
|
|
|
tools:text="Nintendo" />
|
2022-08-07 03:52:14 +02:00
|
|
|
|
2021-02-09 16:11:56 +01:00
|
|
|
<com.google.android.flexbox.FlexboxLayout
|
2021-11-11 09:17:20 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-10-11 17:33:38 +02:00
|
|
|
android:layout_gravity="start"
|
2022-08-07 03:52:14 +02:00
|
|
|
android:layout_marginTop="28dp"
|
2022-07-30 13:22:01 +02:00
|
|
|
app:flexWrap="wrap"
|
2021-10-11 17:33:38 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@id/game_title"
|
2022-08-25 15:02:15 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_author">
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2021-02-09 16:11:56 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/game_play"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
2020-04-12 22:23:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:focusedByDefault="true"
|
|
|
|
android:text="@string/play"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
app:icon="@drawable/ic_play"
|
2022-07-30 13:22:01 +02:00
|
|
|
app:iconTint="?attr/colorAccent"
|
|
|
|
app:layout_minWidth="146dp" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
|
|
|
<Button
|
2021-02-09 16:11:56 +01:00
|
|
|
android:id="@+id/game_pin"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
2022-07-30 13:22:01 +02:00
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
app:icon="@drawable/ic_add_home"
|
2021-11-11 09:17:20 +01:00
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconPadding="0dp"
|
2022-07-30 13:22:01 +02:00
|
|
|
app:layout_maxWidth="55dp" />
|
2021-02-09 16:11:56 +01:00
|
|
|
</com.google.android.flexbox.FlexboxLayout>
|
2021-10-11 17:33:38 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-04-12 22:23:03 +02:00
|
|
|
</LinearLayout>
|