OSDN Git Service

[automerger skipped] Do not allow draw on top for App notification settings skipped...
[android-x86/packages-apps-Settings.git] / res / layout / choose_lock_pattern_common.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 <!-- Used in phone portrait and tablet, as referenced in alias.xml. -->
19 <com.android.setupwizardlib.GlifLayout
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     xmlns:settings="http://schemas.android.com/apk/res-auto"
22     android:layout_width="match_parent"
23     android:layout_height="match_parent"
24     android:icon="@drawable/ic_lock"
25     android:layout="@layout/suw_glif_blank_template"
26     settings:suwFooter="@layout/choose_lock_pattern_common_footer"
27     settings:suwHeaderText="@string/lockpassword_choose_your_pattern_header">
28
29     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
30         android:id="@+id/topLayout"
31         android:layout_width="match_parent"
32         android:layout_height="match_parent"
33         android:clipChildren="false"
34         android:clipToPadding="false"
35         android:orientation="vertical">
36
37         <LinearLayout
38             style="@style/SuwGlifHeaderContainer"
39             android:layout_width="match_parent"
40             android:layout_height="wrap_content"
41             android:orientation="vertical">
42
43             <ImageView
44                 android:id="@+id/suw_layout_icon"
45                 style="@style/LockPatternIconStyle"
46                 android:layout_width="wrap_content"
47                 android:layout_height="wrap_content"
48                 android:src="@drawable/ic_lock" />
49
50             <TextView
51                 android:id="@+id/suw_layout_title"
52                 style="@style/SuwGlifHeaderTitle"
53                 android:layout_width="match_parent"
54                 android:layout_height="wrap_content" />
55
56         </LinearLayout>
57
58         <!-- takes up all space above button bar at bottom -->
59         <LinearLayout
60             style="@style/SuwContentFrame"
61             android:layout_width="match_parent"
62             android:layout_height="0dip"
63             android:layout_weight="1"
64             android:gravity="center"
65             android:clipChildren="false"
66             android:clipToPadding="false"
67             android:orientation="vertical">
68
69             <TextView android:id="@+id/headerText"
70                 android:layout_width="match_parent"
71                 android:layout_height="wrap_content"
72                 android:minLines="2"
73                 android:gravity="center"
74                 android:textSize="18sp" />
75
76             <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
77                 android:layout_width="match_parent"
78                 android:layout_height="0dip"
79                 android:layout_weight="1" />
80
81         </LinearLayout>
82
83         <TextView android:id="@+id/footerText"
84             android:layout_width="wrap_content"
85             android:layout_height="wrap_content"
86             android:layout_gravity="center_horizontal"
87             android:minHeight="50dip"
88             android:textSize="14sp"
89             android:visibility="gone"/>
90
91     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
92
93 </com.android.setupwizardlib.GlifLayout>