• 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="match_parent">
22
23    <!-- takes up all space above button bar at bottom -->
24    <com.android.settings.widget.MatchParentShrinkingLinearLayout
25        android:orientation="vertical"
26        android:layout_width="match_parent"
27        android:layout_height="0dip"
28        android:layout_weight="1">
29
30        <TextView android:id="@+id/headerText"
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:layout_weight="1"
34            android:minLines="2"
35            android:gravity="center"
36            android:textSize="18sp" />
37
38        <View
39             android:background="@*android:drawable/code_lock_top"
40             android:layout_width="match_parent"
41             android:layout_height="2dip" />
42
43        <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
44             android:layout_width="match_parent"
45             android:layout_height="match_parent" />
46
47        <!-- bottom line looks bad when button bar is their too, omit in this case -->
48        <!--View
49             android:background="@*android:drawable/code_lock_bottom"
50             android:layout_width="match_parent"
51             android:layout_height="8dip" /-->
52
53        <TextView android:id="@+id/footerText"
54            android:layout_width="match_parent"
55            android:layout_height="0dip"
56            android:layout_weight="1"
57            android:gravity="center"
58            android:textSize="14sp"/>
59
60    </com.android.settings.widget.MatchParentShrinkingLinearLayout>
61
62    <LinearLayout
63        style="@style/SecurityPreferenceButtonContainer"
64        android:orientation="horizontal">
65
66        <!-- left : cancel, or re-try -->
67        <Button android:id="@+id/footerLeftButton"
68            style="@style/SecurityPreferenceButton"
69            android:text="@string/lockpattern_tutorial_cancel_label"/>
70
71        <!-- right : confirm or ok -->
72        <Button android:id="@+id/footerRightButton"
73            style="@style/SecurityPreferenceButton"
74            android:text="@string/lockpattern_tutorial_continue_label"/>
75
76    </LinearLayout>
77
78</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
79