OSDN Git Service

am 0d5ad3b7: am 57641a8b: am d7e93570: am f11f9f47: Added a check if a custom activit...
[android-x86/packages-apps-Settings.git] / res / layout / choose_lock_pattern.xml
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     <LinearLayout
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="0dip"
33             android:layout_weight="1"
34             android:gravity="center"
35             android:textSize="18sp"/>
36
37         <View
38              android:background="@*android:drawable/code_lock_top"
39              android:layout_width="match_parent"
40              android:layout_height="2dip" />
41
42         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
43              android:layout_width="match_parent"
44              android:layout_height="match_parent"
45              android:background="@color/lock_pattern_background" />
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     </LinearLayout>
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>