1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_height="match_parent" 20 android:layout_width="match_parent" 21 android:gravity="center_horizontal"> 22 23 <!-- top: instructions and buttons --> 24 <!-- header message --> 25 <ScrollView 26 android:layout_width="match_parent" 27 android:layout_height="0dip" 28 android:layout_weight="1"> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical" 34 android:padding="5dip"> 35 36 <!-- Top: instructions --> 37 <TextView 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:gravity="center_horizontal" 41 android:text="@string/lock_title" 42 android:paddingBottom="10dip" 43 style="?android:attr/textAppearanceLarge" 44 android:visibility="visible" 45 /> 46 47 <TextView 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:textAppearance="?android:attr/textAppearanceMedium" 51 android:text="@string/lock_intro_message" 52 /> 53 54 <!-- bottom: lock pattern --> 55 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 56 android:layout_width="200dip" 57 android:layout_height="200dip" 58 android:layout_marginTop="10dip" 59 android:layout_gravity="left"/> 60 61 </LinearLayout> 62 63 </ScrollView> 64 65 <LinearLayout 66 style="@style/SecurityPreferenceButtonContainer" 67 android:orientation="horizontal"> 68 69 <!-- left / top button: skip, or re-try --> 70 <Button android:id="@+id/skip_button" 71 style="@style/SecurityPreferenceButton" 72 android:text="@string/lockpattern_tutorial_cancel_label"/> 73 74 <!-- right / bottom button: confirm or ok --> 75 <Button android:id="@+id/next_button" 76 style="@style/SecurityPreferenceButton" 77 android:text="@string/lockpattern_tutorial_continue_label"/> 78 79 </LinearLayout> 80 81 </LinearLayout> 82