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.DeviceDefault.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.DeviceDefault.Body1" 50 android:id="@+id/sud_layout_description" 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="match_parent" 91 android:layout_height="match_parent" 92 android:layout_gravity="center"/> 93 94 <TextView 95 style="@style/TextAppearance.ErrorText" 96 android:accessibilityLiveRegion="polite" 97 android:id="@+id/errorText" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:layout_gravity="bottom|center_horizontal" 101 android:layout_marginBottom="24dp"/> 102 </FrameLayout> 103 104 <View 105 android:id="@+id/rightSpacer" 106 android:layout_width="0dp" 107 android:layout_height="match_parent" 108 android:layout_weight="1"/> 109 </LinearLayout> 110 111 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 112</FrameLayout> 113