1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2015 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="vertical" 20 android:layout_width="wrap_content" 21 android:layout_height="match_parent"> 22 23 <TextView 24 style="@android:style/TextAppearance.Material.Headline" 25 android:id="@+id/headerText" 26 android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin" 27 android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin" 28 android:layout_marginTop="?attr/confirmDeviceCredentialsTopMargin" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:textColor="?android:attr/colorAccent"/> 32 33 <TextView 34 style="@android:style/TextAppearance.Material.Body1" 35 android:id="@+id/detailsText" 36 android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin" 37 android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin" 38 android:layout_marginTop="12dp" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 /> 42 43 <Button 44 style="@android:style/Widget.Material.Button.Borderless" 45 android:id="@+id/cancelButton" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="@string/cancel" 49 android:layout_marginStart="16dp" 50 android:layout_marginEnd="16dp" 51 android:layout_marginTop="16dp"/> 52 53 <View android:layout_width="match_parent" 54 android:layout_height="0dp" 55 android:layout_weight="0.5"/> 56 57 <com.android.internal.widget.LockPatternView 58 android:id="@+id/lockPattern" 59 android:layout_width="312dp" 60 android:layout_height="312dp" 61 android:layout_gravity="center_horizontal" 62 android:layout_marginTop="-46dp" 63 android:layout_marginBottom="-46dp"/> 64 65 <LinearLayout 66 android:layout_width="match_parent" 67 android:layout_height="0dp" 68 android:layout_weight="1" 69 android:orientation="vertical"> 70 71 <TextView 72 style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText" 73 android:accessibilityLiveRegion="polite" 74 android:id="@+id/errorText" 75 android:layout_width="wrap_content" 76 android:layout_height="0dp" 77 android:layout_weight="1" 78 android:layout_gravity="center_horizontal" 79 android:layout_marginTop="12dp" 80 android:layout_marginStart="12dp" 81 android:layout_marginEnd="12dp" 82 android:gravity="center_vertical"/> 83 84 <ImageView 85 android:id="@+id/fingerprintIcon" 86 android:layout_gravity="center_horizontal" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_alignParentBottom="true" 90 android:layout_marginBottom="24dp" 91 android:contentDescription="@string/confirm_fingerprint_icon_content_description" 92 android:visibility="gone"/> 93 </LinearLayout> 94 95 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>