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 17 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/topLayout" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:gravity="center_horizontal"> 24 25 <!-- header message --> 26 <ScrollView 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:gravity="center" 30 android:layout_marginTop="14dip"> 31 32 <TextView android:id="@+id/headerText" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:gravity="center" 36 android:textAppearance="?android:attr/textAppearanceMedium"/> 37 38 </ScrollView> 39 40 <View 41 android:layout_width="match_parent" 42 android:layout_height="0dip" 43 android:layout_weight="0.6"/> 44 45 <!-- lock pattern widget --> 46 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 47 android:layout_width="354dip" 48 android:layout_height="354dip" 49 aspect="square"/> 50 51 <View 52 android:layout_width="match_parent" 53 android:layout_height="0dip" 54 android:layout_weight="1"/> 55 56 <!-- footer message --> 57 <TextView android:id="@+id/footerText" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_below="@id/headerText" 61 android:layout_marginTop="16dip" 62 android:layout_toEndOf="@id/lockPattern" 63 android:layout_marginStart="100dip" 64 android:textAppearance="?android:attr/textAppearanceMedium" 65 android:visibility="gone"/> 66 67 <!-- confirm / restart buttons --> 68 <LinearLayout android:id="@+id/buttonContainer" 69 style="@style/SecurityPreferenceButtonContainer" 70 android:layout_alignParentEnd="true" 71 android:layout_alignParentBottom="true" 72 android:orientation="horizontal"> 73 74 <!-- left / top button: skip, or re-try --> 75 <Button android:id="@+id/footerLeftButton" 76 style="@style/SecurityPreferenceButton" 77 android:text="@string/lockpattern_restart_button_text"/> 78 79 <!-- right / bottom button: confirm or ok --> 80 <Button android:id="@+id/footerRightButton" 81 style="@style/SecurityPreferenceButton" 82 android:text="@string/lockpattern_confirm_button_text"/> 83 84 </LinearLayout> 85 86 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 87 88