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 <ScrollView 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:fillViewport="true"> 30 <LinearLayout 31 style="@style/SuwContentFrame" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:orientation="horizontal" 35 android:clipToPadding="false" 36 android:clipChildren="false" 37 android:paddingBottom="0dp"> 38 39 <!-- Both texts are kept as separate text views so it doesn't jump around in portrait. 40 See layouts/fingerprint_enroll_enrolling_base.xml. --> 41 <LinearLayout 42 android:layout_width="0dp" 43 android:layout_weight="1" 44 android:layout_height="match_parent" 45 android:layout_marginStart="?attr/suwMarginSides" 46 android:layout_marginBottom="@dimen/suw_content_frame_padding_bottom" 47 android:clipChildren="false" 48 android:clipToPadding="false" 49 android:orientation="vertical"> 50 51 <ImageView 52 android:id="@+id/suw_layout_icon" 53 style="@style/SuwGlifIcon" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_gravity="?attr/suwGlifHeaderGravity" 57 android:layout_marginStart="0dp" 58 android:layout_marginEnd="0dp" 59 android:src="@drawable/ic_fingerprint_header" /> 60 61 <TextView 62 android:id="@+id/suw_layout_title" 63 style="@style/SuwGlifHeaderTitle" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:layout_marginStart="0dp" 67 android:layout_marginEnd="0dp" /> 68 69 <FrameLayout 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content"> 72 73 <TextView 74 style="@style/SuwDescription.Glif" 75 android:id="@+id/start_message" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:text="@string/security_settings_fingerprint_enroll_start_message"/> 79 80 <TextView 81 style="@style/SuwDescription.Glif" 82 android:id="@+id/repeat_message" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:text="@string/security_settings_fingerprint_enroll_repeat_message" 86 android:visibility="invisible"/> 87 88 </FrameLayout> 89 90 <Space 91 android:layout_width="0dp" 92 android:layout_height="0dp" 93 android:layout_weight="1" /> 94 95 <Button 96 android:id="@+id/skip_button" 97 style="@style/SuwGlifButton.Secondary" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:text="@string/security_settings_fingerprint_enroll_enrolling_skip" /> 101 102 </LinearLayout> 103 104 <LinearLayout 105 android:layout_width="0dp" 106 android:layout_weight="1" 107 android:layout_height="match_parent" 108 android:gravity="center" 109 android:orientation="vertical"> 110 111 <com.android.setupwizardlib.view.FillContentLayout 112 android:layout_width="@dimen/fingerprint_progress_bar_max_size" 113 android:layout_height="@dimen/fingerprint_progress_bar_max_size" 114 android:paddingTop="0dp" 115 android:paddingBottom="0dp" 116 android:layout_marginVertical="24dp"> 117 118 <include layout="@layout/fingerprint_enroll_enrolling_content" 119 android:layout_width="match_parent" 120 android:layout_height="match_parent" 121 android:layout_gravity="center" /> 122 </com.android.setupwizardlib.view.FillContentLayout> 123 124 <TextView 125 style="@style/TextAppearance.FingerprintErrorText" 126 android:id="@+id/error_text" 127 android:layout_width="wrap_content" 128 android:layout_height="wrap_content" 129 android:layout_marginBottom="16dp" 130 android:layout_gravity="center_horizontal|bottom" 131 android:accessibilityLiveRegion="polite" 132 android:gravity="center_horizontal" 133 android:paddingEnd="5dp" 134 android:paddingStart="5dp" 135 android:visibility="invisible"/> 136 137 </LinearLayout> 138 139 </LinearLayout> 140 </ScrollView> 141 </com.android.setupwizardlib.GlifLayout> 142