1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ~ Copyright (C) 2015 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17 18 <com.android.setupwizardlib.GlifLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/setup_wizard_layout" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:layout="@layout/suw_glif_blank_template" 24 style="?attr/fingerprint_layout_theme"> 25 26 <LinearLayout 27 style="@style/SuwContentFrame" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:orientation="horizontal" 31 android:clipToPadding="false" 32 android:clipChildren="false" 33 android:paddingBottom="0dp"> 34 35 <!-- Both texts are kept as separate text views so it doesn't jump around in portrait. 36 See layouts/fingerprint_enroll_enrolling_base.xml. --> 37 <LinearLayout 38 android:layout_width="0dp" 39 android:layout_weight="1" 40 android:layout_height="match_parent" 41 android:layout_marginStart="?attr/suwMarginSides" 42 android:layout_marginBottom="@dimen/suw_content_frame_padding_bottom" 43 android:orientation="vertical"> 44 45 <ImageView 46 android:id="@+id/suw_layout_icon" 47 style="@style/SuwGlifIcon" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_marginStart="0dp" 51 android:layout_marginEnd="0dp" 52 android:src="@drawable/ic_lock" /> 53 54 <TextView 55 android:id="@+id/suw_layout_title" 56 style="@style/SuwGlifHeaderTitle" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_marginStart="0dp" 60 android:layout_marginEnd="0dp" /> 61 62 <FrameLayout 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content"> 65 66 <TextView 67 style="@style/TextAppearance.FingerprintMessage" 68 android:id="@+id/start_message" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:text="@string/security_settings_fingerprint_enroll_start_message"/> 72 73 <TextView 74 style="@style/TextAppearance.FingerprintMessage" 75 android:id="@+id/repeat_message" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:text="@string/security_settings_fingerprint_enroll_repeat_message" 79 android:visibility="invisible"/> 80 81 </FrameLayout> 82 83 <Button 84 android:id="@+id/skip_button" 85 style="@style/SetupWizardButton.Negative" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_marginTop="8dp" 89 android:text="@string/skip_label" 90 android:visibility="gone" /> 91 92 </LinearLayout> 93 94 <FrameLayout 95 android:layout_width="0dp" 96 android:layout_weight="1" 97 android:layout_height="match_parent"> 98 99 <include layout="@layout/fingerprint_enroll_enrolling_content" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:layout_gravity="center"/> 103 104 <TextView 105 style="@style/TextAppearance.FingerprintErrorText" 106 android:id="@+id/error_text" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:layout_marginBottom="16dp" 110 android:layout_gravity="center_horizontal|bottom" 111 android:accessibilityLiveRegion="polite" 112 android:visibility="invisible"/> 113 114 </FrameLayout> 115 116 </LinearLayout> 117 118 </com.android.setupwizardlib.GlifLayout> 119