1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2014 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 <!-- Used in phone portrait and tablet, as referenced in alias.xml. --> 19 <com.android.setupwizardlib.SetupWizardLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:settings="http://schemas.android.com/apk/res-auto" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 settings:suwBackgroundTile="@drawable/setup_illustration_tile" 25 settings:suwHeaderText="@string/wifi_setup_wizard_title" 26 settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile" 27 settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen"> 28 29 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient 30 android:id="@+id/topLayout" 31 style="@style/SuwContentFrame" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:orientation="vertical"> 35 36 <!-- takes up all space above button bar at bottom --> 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="0dip" 40 android:layout_weight="1" 41 android:gravity="center" 42 android:orientation="vertical"> 43 44 <TextView android:id="@+id/headerText" 45 android:layout_width="match_parent" 46 android:layout_height="0dip" 47 android:layout_weight="1" 48 android:gravity="center" 49 android:minHeight="50dip" 50 android:textSize="18sp"/> 51 52 <Button android:id="@+id/retryButton" 53 style="@android:style/Widget.Material.Button.Borderless.Colored" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_gravity="center_horizontal" 57 android:text="@string/lockpattern_retry_button_text"/> 58 59 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 60 android:layout_width="match_parent" 61 android:layout_height="0dip" 62 android:layout_weight="4" 63 android:background="@color/lock_pattern_background"/> 64 65 </LinearLayout> 66 67 <TextView android:id="@+id/footerText" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_gravity="center_horizontal" 71 android:minHeight="50dip" 72 android:textSize="14sp" 73 android:visibility="gone"/> 74 75 <!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead --> 76 <LinearLayout 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:orientation="horizontal" 80 android:visibility="gone" 81 style="@style/SecurityPreferenceButtonContainer"> 82 83 <!-- left : cancel, or re-try --> 84 <Button android:id="@+id/footerLeftButton" 85 android:layout_width="0dip" 86 android:layout_height="wrap_content" 87 android:layout_weight="1" 88 android:text="@string/lockpattern_tutorial_cancel_label" 89 style="@style/SecurityPreferenceButton"/> 90 91 <!-- right : confirm or ok --> 92 <Button android:id="@+id/footerRightButton" 93 android:layout_width="0dip" 94 android:layout_height="wrap_content" 95 android:layout_weight="1" 96 android:text="@string/lockpattern_tutorial_continue_label" 97 style="@style/SecurityPreferenceButton"/> 98 99 </LinearLayout> 100 101 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 102 103 </com.android.setupwizardlib.SetupWizardLayout> 104