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="horizontal" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <!-- left side: instructions and messages --> 25 <LinearLayout 26 android:orientation="vertical" 27 android:layout_width="0dip" 28 android:layout_height="match_parent" 29 android:layout_weight="1.0" 30 > 31 32 <!-- header message --> 33 <TextView android:id="@+id/headerText" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:gravity="center" 37 android:textSize="18sp"/> 38 39 <!-- fill space between header and button below --> 40 <View 41 android:layout_weight="1.0" 42 android:layout_width="match_parent" 43 android:layout_height="0dip" 44 /> 45 46 <!-- footer message --> 47 <TextView android:id="@+id/footerText" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:gravity="center" 51 android:textSize="14sp"/> 52 </LinearLayout> 53 54 <View 55 android:background="@*android:drawable/code_lock_left" 56 android:layout_width="2dip" 57 android:layout_height="match_parent" /> 58 59 <!-- right side: lock pattern --> 60 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" 61 android:layout_width="match_parent" 62 android:layout_height="match_parent" /> 63 64 65 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> 66 67