OSDN Git Service

am 4fedc0fd: (-s ours) Import translations. DO NOT MERGE
[android-x86/packages-apps-Settings.git] / res / layout / setup_choose_lock_pattern.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3     Copyright (C) 2014 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License")
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16 -->
17
18 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:id="@+id/topLayout"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent"
23     android:orientation="vertical">
24
25     <!-- takes up all space above button bar at bottom -->
26     <LinearLayout
27         android:layout_width="match_parent"
28         android:layout_height="0dip"
29         android:layout_weight="1"
30         android:gravity="center"
31         android:orientation="vertical">
32
33         <TextView android:id="@+id/headerText"
34             android:layout_width="match_parent"
35             android:layout_height="0dip"
36             android:layout_weight="1"
37             android:gravity="center"
38             android:minHeight="50dp"
39             android:textSize="18sp"/>
40
41         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
42             android:layout_width="match_parent"
43             android:layout_height="0dip"
44             android:layout_weight="4"
45             android:background="@color/lock_pattern_background"/>
46
47     </LinearLayout>
48
49     <LinearLayout
50         android:layout_width="match_parent"
51         android:layout_height="wrap_content"
52         android:gravity="center_horizontal"
53         android:orientation="horizontal">
54
55         <Button android:id="@+id/retryButton"
56             android:layout_width="wrap_content"
57             android:layout_height="wrap_content"
58             android:text="@string/lockpattern_retry_button_text"/>
59
60         <TextView android:id="@+id/footerText"
61             android:layout_width="wrap_content"
62             android:layout_height="wrap_content"
63             android:minHeight="50dp"
64             android:textSize="14sp"/>
65
66     </LinearLayout>
67
68     <!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead -->
69     <LinearLayout
70         android:layout_width="match_parent"
71         android:layout_height="wrap_content"
72         android:orientation="horizontal"
73         android:visibility="gone"
74         style="@style/SecurityPreferenceButtonContainer">
75
76         <!-- left : cancel, or re-try -->
77         <Button android:id="@+id/footerLeftButton"
78             android:layout_width="0dip"
79             android:layout_height="wrap_content"
80             android:layout_weight="1"
81             android:text="@string/lockpattern_tutorial_cancel_label"
82             style="@style/SecurityPreferenceButton"/>
83
84         <!-- right : confirm or ok -->
85         <Button android:id="@+id/footerRightButton"
86             android:layout_width="0dip"
87             android:layout_height="wrap_content"
88             android:layout_weight="1"
89             android:text="@string/lockpattern_tutorial_continue_label"
90             style="@style/SecurityPreferenceButton"/>
91
92     </LinearLayout>
93
94 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>