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"
|
2022-11-05 15:22:25 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_height="wrap_content"
|
2022-11-05 15:22:25 +01:00
|
|
|
android:orientation="vertical">
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2022-11-05 15:22:25 +01:00
|
|
|
<emu.skyline.views.DragIndicatorView
|
|
|
|
android:id="@+id/drag_indicator"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="8dp" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2021-10-11 17:33:38 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2022-11-05 15:22:25 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:nextFocusRight="@id/game_play"
|
|
|
|
android:paddingHorizontal="16dp"
|
2023-02-23 00:48:28 +01:00
|
|
|
android:paddingBottom="8dp">
|
2021-02-09 16:11:56 +01:00
|
|
|
|
2022-11-05 15:22:25 +01:00
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/game_icon"
|
|
|
|
android:layout_width="140dp"
|
|
|
|
android:layout_height="140dp"
|
|
|
|
android:contentDescription="@string/icon"
|
|
|
|
android:focusable="false"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/constraintLayout"
|
2021-10-11 17:33:38 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-11-05 15:22:25 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/constraintLayout"
|
|
|
|
app:shapeAppearance="?attr/shapeAppearanceSmallComponent"
|
|
|
|
tools:src="@drawable/default_icon" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2022-11-05 15:22:25 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/constraintLayout"
|
|
|
|
android:layout_width="0dp"
|
2022-08-07 03:52:14 +02:00
|
|
|
android:layout_height="wrap_content"
|
2022-11-05 15:22:25 +01:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2023-02-23 00:48:28 +01:00
|
|
|
app:layout_constraintHeight_min="140dp"
|
2022-11-05 15:22:25 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/game_icon"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2022-08-07 03:52:14 +02:00
|
|
|
|
2022-11-05 15:22:25 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/game_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
|
|
android:textSize="18sp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="The Legend of Zelda: Breath of the Wild" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2022-11-05 15:22:25 +01:00
|
|
|
<TextView
|
2022-11-22 17:11:37 +01:00
|
|
|
android:id="@+id/game_title_id"
|
2020-04-12 22:23:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-11-05 15:22:25 +01:00
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
|
|
android:textColor="@android:color/tertiary_text_light"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/game_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_title"
|
2022-11-22 17:11:37 +01:00
|
|
|
tools:text="0100000000010000" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/game_version"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
|
|
android:textColor="@android:color/tertiary_text_light"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/game_title_id"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_title_id"
|
2022-11-05 15:22:25 +01:00
|
|
|
tools:text="1.0.0" />
|
2020-04-12 22:23:03 +02:00
|
|
|
|
2022-11-05 15:22:25 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/game_author"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-11-05 15:22:25 +01:00
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
|
|
android:textColor="@android:color/tertiary_text_light"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/game_version"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_version"
|
|
|
|
tools:text="Nintendo" />
|
|
|
|
|
2023-02-23 00:48:28 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<com.google.android.flexbox.FlexboxLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:flexWrap="nowrap"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/game_icon"
|
|
|
|
app:layout_constraintVertical_bias="1">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/game_play"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
android:layout_width="wrap_content"
|
2022-11-05 15:22:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2023-02-23 00:48:28 +01:00
|
|
|
android:contentDescription="@string/play"
|
|
|
|
android:focusedByDefault="true"
|
|
|
|
android:text="@string/play"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
app:icon="@drawable/ic_play"
|
|
|
|
app:iconTint="?attr/colorAccent"
|
|
|
|
app:layout_flexGrow="1"
|
|
|
|
app:layout_maxWidth="140dp" />
|
2022-11-05 15:22:25 +01:00
|
|
|
|
2023-02-23 00:48:28 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/game_settings"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:contentDescription="@string/settings"
|
|
|
|
android:padding="0dp"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
app:icon="@drawable/ic_settings"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconPadding="0dp" />
|
2022-11-05 15:22:25 +01:00
|
|
|
|
2023-02-23 00:48:28 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/game_pin"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:contentDescription="@string/pin"
|
|
|
|
android:padding="0dp"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
app:icon="@drawable/ic_add_home"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconPadding="0dp" />
|
|
|
|
|
|
|
|
</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>
|