• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:inputType="textPassword"
50                    android:maxLines="1"
51                    android:textAppearance="?android:attr/textAppearanceLarge"/>
52                <TextView
53                    android:id="@+id/pin_values_hint"
54                    android:layout_width="match_parent"
55                    android:layout_height="wrap_content"
56                    android:layout_marginTop="@dimen/bluetooth_pin_dialog_subtext_margin_top"
57                    android:singleLine="true"
58                    android:text="@string/bluetooth_pin_values_hint"
59                    android:textAppearance="?android:attr/textAppearanceMedium"/>
60            </LinearLayout>
61        </FrameLayout>
62
63        <RelativeLayout
64            android:layout_width="match_parent"
65            android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
66            <CheckBox
67                android:id="@+id/alphanumeric_pin"
68                android:layout_width="@dimen/icon_size"
69                android:layout_height="@dimen/icon_size"
70                android:layout_alignParentStart="true"
71                android:layout_centerVertical="true"
72                android:button="@drawable/ic_check_box"/>
73            <TextView
74                android:layout_width="match_parent"
75                android:layout_height="wrap_content"
76                android:layout_alignParentStart="true"
77                android:layout_centerVertical="true"
78                android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
79                android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
80                android:gravity="center_vertical"
81                android:singleLine="true"
82                android:text="@string/bluetooth_enable_alphanumeric_pin"
83                android:textAppearance="?android:attr/textAppearanceMedium"/>
84        </RelativeLayout>
85
86        <RelativeLayout
87            android:layout_width="match_parent"
88            android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
89            <CheckBox
90                android:id="@+id/phonebook_sharing_message_entry_pin"
91                android:layout_width="@dimen/icon_size"
92                android:layout_height="@dimen/icon_size"
93                android:layout_alignParentStart="true"
94                android:layout_centerVertical="true"
95                android:button="@drawable/ic_check_box"/>
96            <TextView
97                android:layout_width="match_parent"
98                android:layout_height="wrap_content"
99                android:layout_alignParentStart="true"
100                android:layout_centerVertical="true"
101                android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
102                android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
103                android:gravity="center_vertical"
104                android:singleLine="true"
105                android:text="@string/bluetooth_pairing_shares_phonebook"
106                android:textAppearance="?android:attr/textAppearanceMedium"/>
107        </RelativeLayout>
108    </LinearLayout>
109
110</ScrollView>
111