• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <!-- takes up all space above button bar at bottom -->
25    <LinearLayout
26        android:orientation="vertical"
27        android:layout_width="fill_parent"
28        android:layout_height="0dip"
29        android:layout_weight="1">
30
31        <TextView android:id="@+id/headerText"
32            android:layout_width="fill_parent"
33            android:layout_height="0dip"
34            android:layout_weight="1"
35            android:gravity="center"
36            android:textSize="18sp"/>
37
38        <View
39             android:background="@*android:drawable/code_lock_top"
40             android:layout_width="fill_parent"
41             android:layout_height="2dip" />
42        <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
43             android:layout_width="wrap_content"
44             android:layout_height="wrap_content" />
45
46        <!-- bottom line looks bad when button bar is their too, omit in this case -->
47        <!--View
48             android:background="@*android:drawable/code_lock_bottom"
49             android:layout_width="fill_parent"
50             android:layout_height="8dip" /-->
51
52        <TextView android:id="@+id/footerText"
53            android:layout_width="fill_parent"
54            android:layout_height="0dip"
55            android:layout_weight="1"
56            android:gravity="center"
57            android:textSize="14sp"/>
58
59    </LinearLayout>
60
61
62    <LinearLayout style="@android:style/ButtonBar"
63        android:orientation="horizontal"
64        android:layout_width="fill_parent"
65        android:layout_height="wrap_content">
66
67        <Button android:id="@+id/footerLeftButton"
68            android:layout_height="wrap_content"
69            android:layout_width="140dip"
70            android:ellipsize="marquee"
71            android:singleLine="true"
72            android:text="@string/lockpattern_restart_button_text"/>
73
74        <View
75            android:visibility="invisible"
76            android:layout_height="0dip"
77            android:layout_width="1dip"
78            android:layout_weight="1" />
79
80        <Button android:id="@+id/footerRightButton"
81            android:layout_height="wrap_content"
82            android:layout_width="140dip"
83            android:ellipsize="marquee"
84            android:singleLine="true"
85            android:drawableRight="@drawable/ic_btn_next"
86            android:drawablePadding="3dip"
87            android:text="@string/lockpattern_confirm_button_text"/>
88
89    </LinearLayout>
90
91</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
92