The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [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 | --> |
| 16 | <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/topLayout" |
| 19 | android:orientation="vertical" |
| 20 | android:layout_width="wrap_content" |
| 21 | android:layout_height="fill_parent" |
| 22 | android:background="@color/black"> |
| 23 | |
| 24 | <TextView android:id="@+id/headerText" |
| 25 | android:layout_width="fill_parent" |
| 26 | android:layout_height="0dip" |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 27 | android:layout_weight="1" |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 28 | android:gravity="center" |
| 29 | android:textSize="18sp"/> |
| 30 | |
| 31 | <View |
| 32 | android:background="@*android:drawable/code_lock_top" |
| 33 | android:layout_width="fill_parent" |
| 34 | android:layout_height="2dip" /> |
| 35 | <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" /> |
| 38 | <View |
| 39 | android:background="@*android:drawable/code_lock_bottom" |
| 40 | android:layout_width="fill_parent" |
| 41 | android:layout_height="8dip" /> |
| 42 | |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 43 | <!-- message just above the button bar --> |
| 44 | <TextView android:id="@+id/footerText" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:layout_gravity="center_horizontal" |
| 48 | android:textSize="14sp"/> |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 49 | |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 50 | <!-- confirm / restart buttons --> |
| 51 | <LinearLayout style="@android:style/ButtonBar" |
| 52 | android:orientation="horizontal" |
| 53 | android:layout_width="fill_parent" |
| 54 | android:layout_height="wrap_content"> |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 55 | |
| 56 | <!-- left button: skip, or retry --> |
| 57 | <Button android:id="@+id/footerLeftButton" |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 58 | android:layout_height="wrap_content" |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 59 | android:layout_width="0dip" |
| 60 | android:layout_weight="1" |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 61 | android:text="@string/lockpattern_restart_button_text"/> |
| 62 | |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 63 | <!-- Placeholder to get blank space between the two buttons --> |
| 64 | <View |
| 65 | android:visibility="invisible" |
| 66 | android:layout_height="0dip" |
| 67 | android:layout_width="1dip" |
| 68 | android:layout_weight="1" /> |
| 69 | |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 70 | <!-- right button: confirm or ok --> |
| 71 | <Button android:id="@+id/footerRightButton" |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 72 | android:layout_height="wrap_content" |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 73 | android:layout_width="0dip" |
| 74 | android:layout_weight="1" |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 75 | android:drawableRight="@drawable/ic_btn_next" |
| 76 | android:drawablePadding="3dip" |
| 77 | android:text="@string/lockpattern_confirm_button_text"/> |
| 78 | |
The Android Open Source Project | 1feaa85 | 2009-02-10 15:44:05 -0800 | [diff] [blame] | 79 | </LinearLayout> |
The Android Open Source Project | de2d9f5 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 80 | |
| 81 | </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> |