1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2024 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19              android:layout_width="match_parent"
20              android:layout_height="match_parent"
21              android:gravity="center_horizontal"
22              android:orientation="vertical">
23
24    <TextView
25        android:id="@+id/input_setting_keys_dialog_title"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:layout_marginTop="16dp"
29        android:textSize="20sp"
30        android:gravity="center_horizontal"
31        android:textColor="?android:attr/textColorPrimary"
32        android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
33    />
34
35    <TextView
36        android:id="@+id/input_setting_keys_dialog_subtitle"
37        android:layout_width="match_parent"
38        android:layout_height="wrap_content"
39        android:layout_marginHorizontal="26dp"
40        android:layout_marginTop="8dp"
41        android:textSize="16sp"
42        android:gravity="center"
43        android:textColor="?android:attr/textColorSecondary"
44    />
45
46    <RadioGroup
47        android:id="@+id/input_setting_keys_value_group"
48        android:layout_width="match_parent"
49        android:layout_height="wrap_content"
50        android:layout_marginStart="20dp"
51        android:layout_marginTop="16dp">
52
53        <RadioButton
54            android:id="@+id/input_setting_keys_value_200"
55            android:text="@string/input_setting_keys_dialog_option_200"
56            android:paddingStart="12dp"
57            android:layout_width="match_parent"
58            android:layout_height="wrap_content"
59            android:layout_gravity="start|center_vertical"
60            android:background="@null"/>
61        <RadioButton
62            android:id="@+id/input_setting_keys_value_400"
63            android:text="@string/input_setting_keys_dialog_option_400"
64            android:paddingStart="12dp"
65            android:layout_width="match_parent"
66            android:layout_height="wrap_content"
67            android:layout_gravity="start|center_vertical"
68            android:layout_marginTop="12dp"
69            android:background="@null"/>
70        <RadioButton
71            android:id="@+id/input_setting_keys_value_600"
72            android:text="@string/input_setting_keys_dialog_option_600"
73            android:paddingStart="12dp"
74            android:layout_width="match_parent"
75            android:layout_height="wrap_content"
76            android:layout_gravity="start|center_vertical"
77            android:layout_marginTop="12dp"
78            android:background="@null"/>
79
80        <LinearLayout
81            android:orientation="horizontal"
82            android:layout_width="match_parent"
83            android:layout_height="wrap_content"
84            android:layout_marginVertical="12dp">
85            <RadioButton
86                android:id="@+id/input_setting_keys_value_custom"
87                android:paddingStart="12dp"
88                android:layout_width="wrap_content"
89                android:layout_height="wrap_content"
90                android:layout_gravity="center_vertical"
91                android:background="@null"/>
92            <LinearLayout
93                android:id="@+id/input_setting_keys_custom_value_option"
94                android:orientation="vertical"
95                android:layout_width="match_parent"
96                android:layout_height="wrap_content"
97                android:layout_gravity="center_vertical"
98                android:gravity="center_vertical"
99                android:paddingEnd="16dp">
100                <TextView
101                    android:id="@+id/input_setting_keys_value_custom_title"
102                    android:text="@string/input_setting_keys_custom_title"
103                    android:textColor="?android:attr/textColorPrimary"
104                    android:layout_width="match_parent"
105                    android:layout_height="wrap_content"
106                    android:layout_gravity="center_vertical"/>
107                <TextView
108                    android:id="@+id/input_setting_keys_value_custom_value"
109                    android:text="@string/input_setting_keys_custom_value"
110                    android:textColor="?android:attr/textColorPrimary"
111                    android:layout_width="match_parent"
112                    android:layout_height="wrap_content"
113                    android:layout_gravity="center_vertical"
114                    android:layout_marginTop="8dp"
115                    android:visibility="gone"/>
116                <SeekBar
117                    android:id="@+id/input_setting_keys_value_custom_slider"
118                    android:paddingStart="8dp"
119                    android:paddingEnd="36dp"
120                    android:min="1"
121                    android:max="50"
122                    android:layout_width="match_parent"
123                    android:layout_height="wrap_content"
124                    android:layout_gravity="center_vertical"
125                    android:layout_marginTop="8dp"
126                    android:visibility="gone"
127                    android:background="@null"/>
128            </LinearLayout>
129        </LinearLayout>
130    </RadioGroup>
131
132</LinearLayout>