keyguard_screen_password_portrait.xml revision 7664c0e99d2ee70ad714b904a166b17ac7efdf9f
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2008, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License")
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19<LinearLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:orientation="vertical"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent">
24
25    <!-- top: status and emergency/forgot pattern buttons -->
26    <RelativeLayout
27        android:layout_height="0dip"
28        android:layout_weight="1"
29        android:layout_width="match_parent"
30        android:gravity="center">
31
32        <RelativeLayout android:id="@+id/transport_bg_protect"
33            android:layout_width="512dip"
34            android:layout_height="wrap_content"
35            android:gravity="center">
36
37            <!-- Music transport control -->
38            <include android:id="@+id/transport"
39                layout="@layout/keyguard_transport_control"
40                android:layout_row="0"
41                android:layout_column="0"
42                android:layout_rowSpan="3"
43                android:layout_columnSpan="1"
44                android:layout_gravity="fill"
45                android:layout_width="match_parent"
46                android:layout_height="512dip"
47                />
48
49            <include layout="@layout/keyguard_screen_status_port"
50                android:layout_width="match_parent"
51                android:layout_height="wrap_content"
52                android:layout_marginLeft="50dip"
53                android:layout_marginTop="50dip"
54                android:layout_marginBottom="100dip"
55                android:layout_marginRight="64dip"
56                android:layout_alignParentTop="true"
57                android:layout_alignParentLeft="true"/>
58
59        </RelativeLayout>
60
61    </RelativeLayout>
62
63    <!-- bottom: password -->
64    <RelativeLayout
65        android:layout_width="match_parent"
66        android:layout_height="0dip"
67        android:layout_weight="1"
68        android:gravity="center">
69
70        <LinearLayout
71            android:layout_width="match_parent"
72            android:layout_height="match_parent"
73            android:layout_centerInParent="true"
74            android:orientation="vertical"
75            android:gravity="center">
76
77            <!-- Password entry field -->
78            <LinearLayout
79                android:orientation="horizontal"
80                android:layout_width="330dip"
81                android:layout_height="wrap_content"
82                android:layout_gravity="center"
83                android:layout_marginTop="120dip"
84                android:layout_marginBottom="5dip"
85                android:background="@drawable/lockscreen_password_field_dark">
86
87                <EditText android:id="@+id/passwordEntry"
88                    android:layout_height="wrap_content"
89                    android:layout_width="0dip"
90                    android:layout_weight="1"
91                    android:singleLine="true"
92                    android:textStyle="normal"
93                    android:inputType="textPassword"
94                    android:gravity="center"
95                    android:layout_gravity="center"
96                    android:layout_marginLeft="@dimen/keyguard_lockscreen_pin_margin_left"
97                    android:textSize="24sp"
98                    android:textAppearance="?android:attr/textAppearanceMedium"
99                    android:background="@null"
100                    android:textColor="#ffffffff"
101                    android:privateImeOptions="com.google.android.inputmethod.latin.forceAscii"
102                />
103
104                <!-- This delete button is only visible for numeric PIN entry -->
105                <ImageButton android:id="@+id/pinDel"
106                    android:layout_width="wrap_content"
107                    android:layout_height="wrap_content"
108                    android:src="@android:drawable/ic_input_delete"
109                    android:clickable="true"
110                    android:padding="8dip"
111                    android:layout_gravity="center"
112                    android:background="?android:attr/selectableItemBackground"
113                    android:visibility="gone"
114                />
115
116                <ImageView android:id="@+id/switch_ime_button"
117                    android:layout_width="wrap_content"
118                    android:layout_height="wrap_content"
119                    android:src="@drawable/ic_lockscreen_ime"
120                    android:clickable="true"
121                    android:padding="8dip"
122                    android:layout_gravity="center"
123                    android:background="?android:attr/selectableItemBackground"
124                    android:visibility="gone"
125                />
126
127            </LinearLayout>
128
129            <View
130                android:layout_width="match_parent"
131                android:layout_height="0dip"
132                android:layout_weight="1"
133            />
134
135            <!-- Numeric keyboard -->
136            <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
137                android:layout_width="330dip"
138                android:layout_height="260dip"
139                android:background="#40000000"
140                android:keyBackground="@drawable/btn_keyboard_key_ics"
141                android:layout_marginBottom="80dip"
142                android:clickable="true"
143            />
144
145            <!-- emergency call button -->
146            <Button android:id="@+id/emergencyCallButton"
147                android:layout_width="wrap_content"
148                android:layout_height="wrap_content"
149                android:drawableLeft="@drawable/ic_emergency"
150                android:drawablePadding="8dip"
151                android:text="@string/lockscreen_emergency_call"
152                android:visibility="gone"
153                style="@style/Widget.Button.Transparent"
154            />
155
156        </LinearLayout>
157
158        <!-- Area to overlay FaceLock -->
159        <View android:id="@+id/faceLockAreaView"
160            android:visibility="invisible"
161            android:layout_width="512dip"
162            android:layout_height="512dip"
163            android:layout_centerInParent="true"
164            android:background="@color/facelock_color_background"
165        />
166
167    </RelativeLayout>
168
169</LinearLayout>
170