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