mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-29 23:41:05 -06:00
This feature is accessible by long-pressing on a game card, replacing the old method of accessing the cheats menu
The cheats menu is now accessed from within the about game dialog
Adapted from 69c323289f
Co-authored-by: Ishan09811 <156402647+ishan09811@users.noreply.github.com>
Co-authored-by: kleidis <167202775+kleidis@users.noreply.github.com>
83 lines
3.4 KiB
XML
83 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
style="?attr/materialCardViewOutlinedStyle"
|
|
android:id="@+id/card_game"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
app:cardCornerRadius="8dp"
|
|
tools:layout_width="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/card_contents"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/image_game_screen"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginStart="8dp"
|
|
android:orientation="vertical"
|
|
android:gravity="center_vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/image_game_screen"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/text_game_title"
|
|
style="@style/TextAppearance.Material3.BodyMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAlignment="viewStart"
|
|
android:singleLine="true"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:ellipsize="none"
|
|
android:requiresFadingEdge="horizontal"
|
|
tools:text="The Legend of Zelda\nOcarina of Time 3D" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_company"
|
|
style="@style/TextAppearance.Material3.BodySmall"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAlignment="viewStart"
|
|
android:singleLine="true"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:ellipsize="none"
|
|
android:requiresFadingEdge="horizontal"
|
|
tools:text="Nintendo" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_game_region"
|
|
style="@style/TextAppearance.Material3.BodySmall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAlignment="viewStart"
|
|
android:singleLine="true"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:ellipsize="none"
|
|
android:requiresFadingEdge="horizontal"
|
|
tools:text="Region" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|