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" |
| 27 | android:layout_weight="1.0" |
| 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 | |
| 43 | <!-- footer can show a message, or confirm / restart buttons --> |
| 44 | <RelativeLayout |
| 45 | android:layout_width="fill_parent" |
| 46 | android:layout_height="0dip" |
| 47 | android:layout_weight="1.0"> |
| 48 | |
| 49 | <!-- message --> |
| 50 | <TextView android:id="@+id/footerText" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:layout_alignParentTop="true" |
| 54 | android:layout_centerHorizontal="true" |
| 55 | android:textSize="14sp"/> |
| 56 | |
| 57 | <!-- left button: skip, or retry --> |
| 58 | <Button android:id="@+id/footerLeftButton" |
| 59 | android:layout_width="150dip" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_alignParentLeft="true" |
| 62 | android:layout_alignParentBottom="true" |
| 63 | android:text="@string/lockpattern_restart_button_text"/> |
| 64 | |
| 65 | <!-- right button: confirm or ok --> |
| 66 | <Button android:id="@+id/footerRightButton" |
| 67 | android:layout_width="150dip" |
| 68 | android:layout_height="wrap_content" |
| 69 | android:layout_alignParentRight="true" |
| 70 | android:layout_alignParentBottom="true" |
| 71 | android:drawableRight="@drawable/ic_btn_next" |
| 72 | android:drawablePadding="3dip" |
| 73 | android:text="@string/lockpattern_confirm_button_text"/> |
| 74 | |
| 75 | </RelativeLayout> |
| 76 | |
| 77 | </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient> |
| 78 | |