1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2017 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<ScrollView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:layout_marginEnd="@dimen/bluetooth_pin_dialog_margin_end"
27        android:layout_marginStart="@dimen/bluetooth_pin_dialog_margin_start"
28        android:orientation="vertical">
29
30        <TextView
31            android:id="@+id/message_below_pin"
32            android:layout_width="wrap_content"
33            android:layout_height="@dimen/bluetooth_pin_dialog_section_height"
34            android:gravity="center_vertical"
35            android:textAppearance="?android:attr/textAppearanceMedium"/>
36
37        <FrameLayout
38            android:layout_width="match_parent"
39            android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
40            <LinearLayout
41                android:layout_width="match_parent"
42                android:layout_height="wrap_content"
43                android:layout_gravity="center_vertical"
44                android:orientation="vertical">
45                <EditText
46                    android:id="@+id/text"
47                    android:layout_width="match_parent"
48                    android:layout_height="wrap_content"
49                    android:textAlignment="viewStart"
50                    android:inputType="textPassword"
51                    android:maxLines="1"
52                    android:textAppearance="?android:attr/textAppearanceLarge"/>
53                <TextView
54                    android:id="@+id/pin_values_hint"
55                    android:layout_width="match_parent"
56                    android:layout_height="wrap_content"
57                    android:layout_marginTop="@dimen/bluetooth_pin_dialog_subtext_margin_top"
58                    android:singleLine="true"
59                    android:text="@string/bluetooth_pin_values_hint"
60                    android:textAppearance="?android:attr/textAppearanceMedium"/>
61            </LinearLayout>
62        </FrameLayout>
63
64        <RelativeLayout
65            android:layout_width="match_parent"
66            android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
67            <CheckBox
68                android:id="@+id/alphanumeric_pin"
69                android:layout_width="@dimen/icon_size"
70                android:layout_height="@dimen/icon_size"
71                android:layout_alignParentStart="true"
72                android:layout_centerVertical="true"
73                android:button="@drawable/ic_check_box"/>
74            <TextView
75                android:layout_width="match_parent"
76                android:layout_height="wrap_content"
77                android:layout_alignParentStart="true"
78                android:layout_centerVertical="true"
79                android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
80                android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
81                android:gravity="center_vertical"
82                android:singleLine="true"
83                android:text="@string/bluetooth_enable_alphanumeric_pin"
84                android:textAppearance="?android:attr/textAppearanceMedium"/>
85        </RelativeLayout>
86
87        <RelativeLayout
88            android:layout_width="match_parent"
89            android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
90            <CheckBox
91                android:id="@+id/phonebook_sharing_message_entry_pin"
92                android:layout_width="@dimen/icon_size"
93                android:layout_height="@dimen/icon_size"
94                android:layout_alignParentStart="true"
95                android:layout_centerVertical="true"
96                android:button="@drawable/ic_check_box"/>
97            <TextView
98                android:layout_width="match_parent"
99                android:layout_height="wrap_content"
100                android:layout_alignParentStart="true"
101                android:layout_centerVertical="true"
102                android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
103                android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
104                android:gravity="center_vertical"
105                android:singleLine="true"
106                android:text="@string/bluetooth_pairing_shares_phonebook"
107                android:textAppearance="?android:attr/textAppearanceMedium"/>
108        </RelativeLayout>
109    </LinearLayout>
110
111</ScrollView>
112