summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/res/layout-ldrtl/list_item_cheat.xml
blob: 36cdaccd03be5b4d63694a5545adf81f3e01bb49 (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
39
<?xml version="1.0" encoding="utf-8"?>
<!-- Set nextFocusLeft so switch functionality is maintained in rtl layouts -->
<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:nextFocusLeft="@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_marginEnd="@dimen/spacing_large"
        android:layout_marginStart="@dimen/spacing_large"
        android:layout_toStartOf="@+id/cheat_switch"
        android:gravity="center_vertical|start"
        android:textAlignment="viewStart"
        android:textSize="16sp"
        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="24dp"
        android:focusable="true"
        android:nextFocusRight="@id/root" />

</RelativeLayout>