OSDN Git Service

Merge "Hide summary for type system" into oc-mr1-dev
[android-x86/packages-apps-Settings.git] / res / layout-land / confirm_lock_pattern.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 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 <FrameLayout
17     xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="match_parent"
19     android:layout_height="match_parent" >
20
21     <include layout="@layout/confirm_lock_background_base" />
22
23     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
24         xmlns:android="http://schemas.android.com/apk/res/android"
25         android:id="@+id/topLayout"
26         android:orientation="horizontal"
27         android:layout_width="match_parent"
28         android:layout_height="match_parent"
29         android:clipChildren="false"
30         android:clipToPadding="false">
31
32         <LinearLayout
33             android:layout_width="0dp"
34             android:layout_height="wrap_content"
35             android:layout_gravity="center_vertical"
36             android:layout_weight="1"
37             android:orientation="vertical">
38
39             <TextView
40                 style="@android:style/TextAppearance.Material.Headline"
41                 android:id="@+id/headerText"
42                 android:layout_marginStart="32dp"
43                 android:layout_marginEnd="32dp"
44                 android:layout_width="wrap_content"
45                 android:layout_height="wrap_content"
46                 android:textColor="?android:attr/colorAccent"/>
47
48             <TextView
49                 style="@android:style/TextAppearance.Material.Body1"
50                 android:id="@+id/detailsText"
51                 android:layout_marginStart="32dp"
52                 android:layout_marginEnd="32dp"
53                 android:layout_marginTop="12dp"
54                 android:layout_width="wrap_content"
55                 android:layout_height="wrap_content"/>
56
57             <Button
58                 style="@android:style/Widget.Material.Button.Borderless"
59                 android:id="@+id/cancelButton"
60                 android:layout_width="wrap_content"
61                 android:layout_height="wrap_content"
62                 android:text="@string/cancel"
63                 android:layout_marginStart="16dp"
64                 android:layout_marginEnd="16dp"
65                 android:layout_marginTop="16dp"/>
66         </LinearLayout>
67
68         <LinearLayout
69             android:layout_width="0dp"
70             android:layout_height="match_parent"
71             android:layout_weight="1"
72             android:orientation="horizontal"
73             android:clipChildren="false"
74             android:clipToPadding="false">
75
76             <View
77                 android:id="@+id/leftSpacer"
78                 android:layout_width="0dp"
79                 android:layout_height="match_parent"
80                 android:layout_weight="0.4"/>
81
82             <FrameLayout
83                 android:layout_width="wrap_content"
84                 android:layout_height="match_parent"
85                 android:clipChildren="false"
86                 android:clipToPadding="false">
87
88                 <com.android.internal.widget.LockPatternView
89                     android:id="@+id/lockPattern"
90                     android:layout_width="288dp"
91                     android:layout_height="288dp"
92                     android:layout_marginStart="-42dp"
93                     android:layout_marginEnd="-42dp"
94                     android:layout_gravity="center_vertical"/>
95
96                 <TextView
97                     style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText"
98                     android:accessibilityLiveRegion="polite"
99                     android:id="@+id/errorText"
100                     android:layout_width="wrap_content"
101                     android:layout_height="wrap_content"
102                     android:layout_gravity="bottom|center_horizontal"
103                     android:layout_marginBottom="24dp"/>
104             </FrameLayout>
105
106             <View
107                 android:id="@+id/rightSpacer"
108                 android:layout_width="0dp"
109                 android:layout_height="match_parent"
110                 android:layout_weight="1"/>
111
112             <ImageView
113                 android:id="@+id/fingerprintIcon"
114                 android:layout_gravity="center_vertical"
115                 android:layout_width="0dp"
116                 android:layout_weight="1"
117                 android:layout_height="wrap_content"
118                 android:visibility="gone"/>
119         </LinearLayout>
120
121     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
122 </FrameLayout>