• 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
17<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
18        xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/topLayout"
20    android:orientation="horizontal"
21    android:layout_width="fill_parent"
22    android:layout_height="fill_parent"
23    android:background="@color/black">
24
25    <!-- left side: instructions and messages -->
26    <LinearLayout
27            android:orientation="vertical"
28            android:layout_width="0dip"
29            android:layout_height="fill_parent"
30            android:layout_weight="1.0"
31            >
32
33        <!-- header message -->
34        <TextView android:id="@+id/headerText"
35                  android:layout_width="fill_parent"
36                  android:layout_height="wrap_content"
37                  android:gravity="center"
38                  android:textSize="18sp"/>
39
40        <!-- footer can show a message, or confirm / restart buttons -->
41        <RelativeLayout
42                android:layout_width="fill_parent"
43                android:layout_height="0dip"
44                android:layout_weight="1.0">
45
46            <!-- right / bottom button: confirm or ok -->
47            <Button android:id="@+id/footerRightButton"
48                android:layout_height="wrap_content"
49                android:layout_width="140dip"
50                android:layout_alignParentBottom="true"
51                android:layout_centerHorizontal="true"
52                android:ellipsize="marquee"
53                android:singleLine="true"
54                android:drawableRight="@drawable/ic_btn_next"
55                android:drawablePadding="3dip"
56                android:text="@string/lockpattern_confirm_button_text"/>
57
58
59            <!-- left / top button: skip, or re-try -->
60            <Button android:id="@+id/footerLeftButton"
61                android:layout_height="wrap_content"
62                android:layout_width="140dip"
63                android:layout_above="@id/footerRightButton"
64                android:layout_centerHorizontal="true"
65                android:ellipsize="marquee"
66                android:singleLine="true"
67                android:text="@string/lockpattern_restart_button_text"/>
68
69
70            <!-- message above buttons -->
71            <TextView android:id="@+id/footerText"
72                android:layout_width="wrap_content"
73                android:layout_height="wrap_content"
74                android:layout_above="@+id/footerLeftButton"
75                android:layout_centerHorizontal="true"
76                android:layout_marginBottom="4dip"
77                android:textSize="14sp"/>
78        </RelativeLayout>
79    </LinearLayout>
80
81    <View
82         android:background="@*android:drawable/code_lock_left"
83         android:layout_width="2dip"
84         android:layout_height="fill_parent" />
85    <!-- right side: lock pattern -->
86    <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
87         android:layout_width="wrap_content"
88         android:layout_height="wrap_content" />
89
90
91</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
92
93