keyguard_screen_password_portrait.xml revision 39d4b067a777a96817c279429a8e3c452c13c5b4
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 xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    android:gravity="center_horizontal">
24
25    <!-- "Enter PIN(Password) to unlock" -->
26    <TextView android:id="@+id/status1"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:orientation="horizontal"
30        android:layout_marginRight="6dip"
31        android:layout_marginLeft="6dip"
32        android:layout_marginTop="10dip"
33        android:layout_marginBottom="10dip"
34        android:gravity="center"
35        android:text="@android:string/keyguard_password_enter_password_code"
36        android:textAppearance="?android:attr/textAppearanceLarge"
37    />
38
39    <!-- spacer above text entry field -->
40    <View
41        android:id="@+id/spacerBottom"
42        android:layout_width="fill_parent"
43        android:layout_height="1dip"
44        android:layout_marginTop="6dip"
45        android:background="@android:drawable/divider_horizontal_dark"
46    />
47
48    <!-- Password entry field -->
49    <EditText android:id="@+id/passwordEntry"
50        android:layout_width="match_parent"
51        android:layout_height="wrap_content"
52        android:singleLine="true"
53        android:textStyle="bold"
54        android:inputType="textPassword"
55        android:gravity="center"
56        android:layout_gravity="center"
57        android:textSize="32sp"
58        android:layout_marginTop="15dip"
59        android:layout_marginLeft="30dip"
60        android:layout_marginRight="30dip"
61        android:textAppearance="?android:attr/textAppearanceLarge"
62        android:background="@drawable/password_field_default"
63        android:textColor="#ffffffff"
64    />
65
66    <View
67        android:layout_width="match_parent"
68        android:layout_height="0dip"
69        android:layout_weight="1" />
70
71    <!-- Alphanumeric keyboard -->
72    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
73        android:layout_alignParentBottom="true"
74        android:layout_width="match_parent"
75        android:layout_height="wrap_content"
76        android:background="#00000000"
77        android:keyBackground="@drawable/btn_keyboard_key_fulltrans"
78    />
79
80    <!-- emergency call button -->
81    <Button
82        android:id="@+id/emergencyCall"
83        android:layout_width="wrap_content"
84        android:layout_height="wrap_content"
85        android:drawableLeft="@drawable/ic_emergency"
86        android:drawablePadding="8dip"
87        android:layout_marginTop="20dip"
88        android:layout_marginBottom="20dip"
89        android:text="@string/lockscreen_emergency_call"
90        style="@style/Widget.Button.Transparent"
91    />
92</LinearLayout>
93