1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
20    android:id="@+id/modifier_key_fragment_scroll_view"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent">
23
24    <LinearLayout
25        android:id="@+id/modifier_key_fragment_container"
26        android:orientation="vertical"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent" >
29
30        <LinearLayout android:orientation="vertical"
31                      android:layout_width="match_parent"
32                      android:layout_height="wrap_content"
33                      android:divider="?android:dividerHorizontal"
34                      android:showDividers="end" >
35            <TextView
36                android:id="@+id/modifier_key_picker_title"
37                android:layout_width="wrap_content"
38                android:layout_height="wrap_content"
39                android:layout_marginTop="24dp"
40                android:layout_marginBottom="8dp"
41                android:layout_marginStart="16dp"
42                android:layout_marginEnd="16dp"
43                android:layout_gravity="center_horizontal"
44                android:textAppearance="?android:attr/textAppearanceLarge"
45                android:textColor="?android:attr/textColorPrimary"
46                android:text="@string/modifier_keys_picker_title"/>
47
48            <TextView
49                android:id="@+id/modifier_key_picker_summary"
50                android:layout_width="wrap_content"
51                android:layout_height="wrap_content"
52                android:layout_marginTop="8dp"
53                android:layout_marginBottom="16dp"
54                android:layout_marginStart="16dp"
55                android:layout_marginEnd="16dp"
56                android:layout_gravity="center_horizontal"
57                android:textAppearance="?android:attr/textAppearanceSmall"
58                android:textColor="?android:attr/textColorSecondary"/>
59        </LinearLayout>
60
61        <LinearLayout android:orientation="vertical"
62                      android:layout_width="match_parent"
63                      android:layout_height="wrap_content"
64                      android:divider="?android:dividerHorizontal"
65                      android:showDividers="end">
66            <ListView
67                android:id="@+id/modifier_key_picker"
68                android:layout_width="wrap_content"
69                android:layout_height="352dp"
70                android:divider="@null"
71                android:dividerHeight="8dp"
72                android:padding="16dp"
73                android:listSelector="@drawable/modifier_key_lisetview_background"
74            />
75        </LinearLayout>
76
77        <RelativeLayout
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:layout_marginStart="8dp"
81            android:layout_marginEnd="8dp"
82            android:layout_marginTop="6dp"
83            android:layout_marginBottom="6dp">
84
85            <Button
86                android:id="@+id/modifier_key_cancel_button"
87                android:layout_width="wrap_content"
88                android:layout_height="wrap_content"
89                android:layout_marginTop="6dp"
90                android:layout_marginBottom="6dp"
91                android:layout_marginStart="8dp"
92                android:layout_alignParentStart="true"
93                android:paddingVertical="14dp"
94                android:drawablePadding="9dp"
95                style="@style/ModifierKeyButtonCancel"
96                android:textColor="?android:attr/textColorPrimary"
97                android:text="@string/modifier_keys_cancel"/>
98
99            <Button
100                android:id="@+id/modifier_key_done_button"
101                android:layout_width="wrap_content"
102                android:layout_height="wrap_content"
103                android:layout_marginTop="6dp"
104                android:layout_marginBottom="6dp"
105                android:layout_marginEnd="8dp"
106                android:layout_alignParentEnd="true"
107                android:paddingVertical="14dp"
108                android:drawablePadding="9dp"
109                style="@style/ModifierKeyButtonDone"
110                android:textColor="?androidprv:attr/materialColorOnPrimary"
111                android:text="@string/modifier_keys_done"/>
112
113        </RelativeLayout>
114    </LinearLayout>
115</ScrollView>