blob: ad08e44afd1132a04d6cf2808fc654b7301070ec [file] [log] [blame]
Jim Miller17e9e192010-12-07 20:41:41 -08001<?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-->
Jim Miller17e9e192010-12-07 20:41:41 -080016<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
Jim Millerd12b9502011-05-23 16:44:24 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Jim Miller17e9e192010-12-07 20:41:41 -080018 android:id="@+id/topLayout"
19 android:orientation="horizontal"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent">
22
Jim Millerd12b9502011-05-23 16:44:24 -070023 <!-- left side: lock pattern widget -->
Jim Miller2e28ace2010-12-15 10:07:16 -080024 <RelativeLayout
Jim Miller17e9e192010-12-07 20:41:41 -080025 android:layout_width="0dip"
26 android:layout_height="match_parent"
Jim Millerd12b9502011-05-23 16:44:24 -070027 android:layout_weight="1"
28 android:gravity="center_horizontal|center_vertical"
29 android:orientation="horizontal">
Jim Miller17e9e192010-12-07 20:41:41 -080030
Jim Miller2e28ace2010-12-15 10:07:16 -080031 <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
32 android:layout_width="354dip"
33 android:layout_height="354dip"
Jim Miller2e28ace2010-12-15 10:07:16 -080034 aspect="square"/>
35
Jim Millerd12b9502011-05-23 16:44:24 -070036 </RelativeLayout>
37
38 <!-- right side: instructions and buttons -->
39 <RelativeLayout
40 android:layout_width="0dip"
41 android:layout_height="match_parent"
42 android:layout_weight="1"
43 android:gravity="center_horizontal">
44
45 <!-- confirm / restart buttons -->
46 <LinearLayout android:id="@+id/buttonContainer"
47 style="@style/SecurityPreferenceButtonContainer"
48 android:layout_alignParentRight="true"
49 android:layout_alignParentBottom="true"
50 android:orientation="horizontal">
51
52 <!-- left / top button: skip, or re-try -->
53 <Button android:id="@+id/footerLeftButton"
54 style="@style/SecurityPreferenceButton"
55 android:text="@string/lockpattern_restart_button_text"/>
56
57 <!-- right / bottom button: confirm or ok -->
58 <Button android:id="@+id/footerRightButton"
59 style="@style/SecurityPreferenceButton"
60 android:text="@string/lockpattern_confirm_button_text"/>
61
62 </LinearLayout>
Jim Miller17e9e192010-12-07 20:41:41 -080063
64 <!-- footer message -->
65 <TextView android:id="@+id/footerText"
Jim Millerd12b9502011-05-23 16:44:24 -070066 android:layout_width="wrap_content"
Jim Miller17e9e192010-12-07 20:41:41 -080067 android:layout_height="wrap_content"
Jim Millerd12b9502011-05-23 16:44:24 -070068 android:layout_above="@id/buttonContainer"
Jim Miller2e28ace2010-12-15 10:07:16 -080069 android:layout_marginTop="16dip"
Jim Millerd12b9502011-05-23 16:44:24 -070070 android:textAppearance="?android:attr/textAppearanceLarge"/>
71
72 <!-- header message -->
73 <ScrollView
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:layout_alignParentTop="true"
77 android:layout_marginTop="20dip"
78 android:layout_marginLeft="20dip"
79 android:layout_above="@id/footerText"
80 android:gravity="center_vertical|center_horizontal">
81
82 <TextView android:id="@+id/headerText"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:textSize="22sp"/>
86
87 </ScrollView>
Jim Miller2e28ace2010-12-15 10:07:16 -080088
89 </RelativeLayout>
Jim Miller17e9e192010-12-07 20:41:41 -080090
91</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
92