• 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="match_parent"
21    android:layout_height="match_parent"
22    android:gravity="center_horizontal">
23
24    <!-- top: instructions and buttons -->
25
26    <!-- header message -->
27    <ScrollView
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:gravity="center"
31        android:layout_marginTop="96dip">
32
33        <TextView android:id="@+id/headerText"
34            android:layout_width="fill_parent"
35            android:layout_height="wrap_content"
36            android:gravity="center"
37            android:textAppearance="?android:attr/textAppearanceMedium"/>
38
39    </ScrollView>
40
41    <!-- footer message -->
42    <TextView android:id="@+id/footerText"
43        android:layout_width="wrap_content"
44        android:layout_height="wrap_content"
45        android:layout_marginTop="16dip"
46        android:textAppearance="?android:attr/textAppearanceMedium"
47        android:visibility="gone"/>
48
49    <!-- bottom: lock pattern -->
50    <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
51         android:layout_width="354dip"
52         android:layout_height="354dip"
53         android:layout_marginTop="80dip"
54         aspect="square"/>
55
56    <View
57        android:layout_width="match_parent"
58        android:layout_height="0dip"
59        android:layout_weight="1"/>
60
61    <RelativeLayout
62        android:layout_width="match_parent"
63        android:layout_height="wrap_content">
64
65        <LinearLayout
66            style="@style/SecurityPreferenceButtonContainer"
67            android:layout_alignParentEnd="true"
68            android:orientation="horizontal">
69
70            <!-- left / top button: skip, or re-try -->
71            <Button android:id="@+id/footerLeftButton"
72                style="@style/SecurityPreferenceButton"
73                android:text="@string/lockpattern_restart_button_text"/>
74
75            <!-- right / bottom button: confirm or ok -->
76            <Button android:id="@+id/footerRightButton"
77                style="@style/SecurityPreferenceButton"
78                android:text="@string/lockpattern_confirm_button_text"/>
79
80        </LinearLayout>
81
82    </RelativeLayout>
83
84</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
85