Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / restrictions_pin_challenge.xml
blobf41924cf13f63f28de69bba69436a682897f09fa
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2013 The Android Open Source Project
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
8           http://www.apache.org/licenses/LICENSE-2.0
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 -->
17 <!-- Layout used as the dialog's content View for EditTextPreference. -->
18 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="match_parent"
20     android:layout_height="match_parent"
21     android:overScrollMode="ifContentScrolls">
23     <LinearLayout
24         android:layout_width="match_parent"
25         android:layout_height="wrap_content"
26         android:orientation="vertical">
27         <LinearLayout
28             android:layout_width="match_parent"
29             android:layout_height="wrap_content"
30             android:padding="8dip"
31             android:orientation="vertical">
33             <EditText android:id="@+id/pin_text"
34                 android:layout_marginLeft="8dip"
35                 android:layout_marginStart="8dip"
36                 android:layout_marginRight="8dip"
37                 android:layout_marginEnd="8dip"
38                 android:layout_width="match_parent"
39                 android:layout_height="wrap_content"
40                 android:inputType="numberPassword"
41                 android:textColor="?android:attr/textColorPrimary" />
43             <TextView android:id="@+id/pin_error_message"
44                 android:layout_marginTop="8dp"
45                 android:layout_marginBottom="8dp"
46                 android:layout_width="match_parent"
47                 android:layout_height="wrap_content"
48                 android:text="@string/restr_pin_incorrect"
49                 android:gravity="center"/>
50         </LinearLayout>
52         <LinearLayout android:id="@+id/buttonPanel"
53             android:layout_width="match_parent"
54             android:layout_height="wrap_content"
55             android:minHeight="@dimen/alert_dialog_button_bar_height"
56             android:orientation="vertical"
57             android:divider="?android:attr/dividerHorizontal"
58             android:showDividers="beginning"
59             android:dividerPadding="0dip">
60             <LinearLayout
61                 style="?android:attr/buttonBarStyle"
62                 android:layout_width="match_parent"
63                 android:layout_height="wrap_content"
64                 android:orientation="horizontal"
65                 android:layoutDirection="locale"
66                 android:measureWithLargestChild="true">
67                 <Button android:id="@+id/pin_cancel_button"
68                     android:layout_width="wrap_content"
69                     android:layout_gravity="start"
70                     android:layout_weight="1"
71                     android:maxLines="2"
72                     android:minHeight="@dimen/alert_dialog_button_bar_height"
73                     style="?android:attr/buttonBarButtonStyle"
74                     android:textSize="14sp"
75                     android:layout_height="wrap_content"
76                     android:text="@string/cancel" />
77                 <Button android:id="@+id/pin_ok_button"
78                     android:layout_width="wrap_content"
79                     android:layout_gravity="end"
80                     android:layout_weight="1"
81                     android:maxLines="2"
82                     style="?android:attr/buttonBarButtonStyle"
83                     android:textSize="14sp"
84                     android:minHeight="@dimen/alert_dialog_button_bar_height"
85                     android:layout_height="wrap_content"
86                     android:text="@string/ok" />
87             </LinearLayout>
88         </LinearLayout>
89     </LinearLayout>
90 </ScrollView>