Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 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 | --> |
Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 16 | <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 18 | android:id="@+id/topLayout" |
| 19 | android:orientation="horizontal" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent"> |
| 22 | |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 23 | <!-- left side: lock pattern widget --> |
Jim Miller | 2e28ace | 2010-12-15 10:07:16 -0800 | [diff] [blame] | 24 | <RelativeLayout |
Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 25 | android:layout_width="0dip" |
| 26 | android:layout_height="match_parent" |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 27 | android:layout_weight="1" |
| 28 | android:gravity="center_horizontal|center_vertical" |
| 29 | android:orientation="horizontal"> |
Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 30 | |
Jim Miller | 2e28ace | 2010-12-15 10:07:16 -0800 | [diff] [blame] | 31 | <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" |
| 32 | android:layout_width="354dip" |
| 33 | android:layout_height="354dip" |
Jim Miller | 2e28ace | 2010-12-15 10:07:16 -0800 | [diff] [blame] | 34 | aspect="square"/> |
| 35 | |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 36 | </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 Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 63 | |
| 64 | <!-- footer message --> |
| 65 | <TextView android:id="@+id/footerText" |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 66 | android:layout_width="wrap_content" |
Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 67 | android:layout_height="wrap_content" |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 68 | android:layout_above="@id/buttonContainer" |
Jim Miller | 2e28ace | 2010-12-15 10:07:16 -0800 | [diff] [blame] | 69 | android:layout_marginTop="16dip" |
Jim Miller | d12b950 | 2011-05-23 16:44:24 -0700 | [diff] [blame^] | 70 | 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 Miller | 2e28ace | 2010-12-15 10:07:16 -0800 | [diff] [blame] | 88 | |
| 89 | </RelativeLayout> |
Jim Miller | 17e9e19 | 2010-12-07 20:41:41 -0800 | [diff] [blame] | 90 | |
| 91 | </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> |
| 92 | |