keyguard_screen_password_portrait.xml revision 024e429b49e70469fa20b4e3cac17e1921c68f9d
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
24    <!-- top: status -->
25    <RelativeLayout
26            android:layout_width="match_parent"
27            android:layout_height="0dip"
28            android:layout_weight="1">
29        <include layout="@layout/keyguard_screen_status_port"
30            android:layout_width="wrap_content"
31            android:layout_height="wrap_content"
32            android:layout_marginTop="134dip"
33            android:layout_marginLeft="266dip"
34            android:layout_alignParentTop="true"
35            android:layout_alignParentLeft="true"/>
36    </RelativeLayout>
37
38    <!-- bottom: password -->
39    <LinearLayout
40        android:layout_width="match_parent"
41        android:layout_height="0dip"
42        android:layout_weight="1"
43        android:orientation="vertical"
44        android:gravity="center">
45
46        <!-- Password entry field -->
47        <EditText android:id="@+id/passwordEntry"
48            android:layout_height="wrap_content"
49            android:layout_width="330dip"
50            android:singleLine="true"
51            android:textStyle="normal"
52            android:inputType="textPassword"
53            android:gravity="center"
54            android:layout_gravity="center"
55            android:textSize="24sp"
56            android:layout_marginTop="120dip"
57            android:layout_marginBottom="5dip"
58            android:textAppearance="?android:attr/textAppearanceMedium"
59            android:background="@drawable/lockscreen_password_field_dark"
60            android:textColor="#ffffffff"
61            />
62
63        <View
64            android:layout_width="match_parent"
65            android:layout_height="0dip"
66            android:layout_weight="1"
67        />
68
69        <!-- Numeric keyboard -->
70        <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
71            android:layout_width="330dip"
72            android:layout_height="260dip"
73            android:background="#40000000"
74            android:keyBackground="@drawable/btn_keyboard_key_fulltrans"
75            android:layout_marginBottom="80dip"
76        />
77
78        <!-- Alphanumeric keyboard -->
79        <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboardAlpha"
80            android:layout_width="match_parent"
81            android:layout_height="230dip"
82            android:background="@drawable/password_keyboard_background_holo"
83            android:keyBackground="@drawable/btn_keyboard_key_fulltrans"
84            android:keyTextSize="28dip"
85            android:visibility="gone"
86        />
87
88        <!-- emergency call button -->
89        <Button
90            android:id="@+id/emergencyCall"
91            android:layout_width="wrap_content"
92            android:layout_height="wrap_content"
93            android:drawableLeft="@drawable/ic_emergency"
94            android:drawablePadding="8dip"
95            android:text="@string/lockscreen_emergency_call"
96            android:visibility="gone"
97            style="@style/Widget.Button.Transparent"
98        />
99
100    </LinearLayout>
101</LinearLayout>