summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/res/layout/list_item_cheat.xml
blob: 0c76b2339c8b1cf8b50d09ef1e26cf4835a95f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:focusable="true"
    android:clickable="true"
    android:background="?android:attr/selectableItemBackground"
    android:nextFocusRight="@id/cheat_switch">

    <TextView
        android:id="@+id/text_name"
        style="@style/TextAppearance.MaterialComponents.Headline5"
        android:layout_width="wrap_content"
        android:layout_height="76dp"
        android:layout_alignParentStart="true"
        android:layout_centerVertical="true"
        android:layout_marginStart="@dimen/spacing_large"
        android:layout_marginEnd="@dimen/spacing_large"
        android:layout_toStartOf="@id/cheat_switch"
        android:gravity="center_vertical|start"
        android:textSize="16sp"
        android:textAlignment="viewStart"
        tools:text="Hyrule Field Speed Hack" />

    <com.google.android.material.materialswitch.MaterialSwitch
        android:id="@+id/cheat_switch"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true"
        android:layout_marginEnd="20dp"
        android:focusable="true"
        android:nextFocusRight="@id/root" />

</RelativeLayout>