keyguard_screen_password_portrait.xml revision 7377cd0ab4e4db23d6ef99c2c73e3e1d5c9312fa
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="wrap_content"
28            android:layout_marginRight="16dip">
29        <include layout="@layout/keyguard_screen_status_port"
30            android:layout_width="wrap_content"
31            android:layout_height="wrap_content"
32            android:layout_alignParentTop="true"
33            android:layout_alignParentRight="true"/>
34    </RelativeLayout>
35
36    <!-- emergency call button -->
37    <Button
38        android:id="@+id/emergencyCallButton"
39        android:layout_width="wrap_content"
40        android:layout_height="wrap_content"
41        android:layout_marginTop="4dip"
42        android:layout_marginRight="16dip"
43        android:layout_gravity="right"
44        android:drawableLeft="@drawable/lockscreen_emergency_button"
45        android:drawablePadding="8dip"
46        android:text="@string/lockscreen_emergency_call"
47        style="?android:attr/buttonBarButtonStyle"
48    />
49
50    <!-- bottom: password -->
51
52    <!-- Password entry field -->
53    <EditText android:id="@+id/passwordEntry"
54        android:layout_height="wrap_content"
55        android:layout_width="match_parent"
56        android:singleLine="true"
57        android:textStyle="normal"
58        android:inputType="textPassword"
59        android:gravity="center"
60        android:textSize="22sp"
61        android:layout_marginLeft="16dip"
62        android:layout_marginRight="16dip"
63        android:background="@drawable/lockscreen_password_field_dark"
64        android:textAppearance="?android:attr/textAppearanceMedium"
65        android:textColor="#ffffffff"/>
66
67    <View
68        android:layout_width="match_parent"
69        android:layout_height="0dip"
70        android:layout_weight="1"
71    />
72
73    <!-- Numeric keyboard -->
74    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
75        android:layout_width="match_parent"
76        android:layout_height="260dip"
77        android:background="#40000000"
78        android:keyBackground="@drawable/btn_keyboard_key_fulltrans"
79    />
80
81    <!-- Alphanumeric keyboard -->
82    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboardAlpha"
83        android:layout_width="match_parent"
84        android:layout_height="400dip"
85        android:background="@drawable/password_keyboard_background_holo"
86        android:keyBackground="@drawable/btn_keyboard_key_fulltrans"
87        android:keyTextSize="22dip"
88        android:visibility="gone"
89    />
90
91    <TextView
92        android:id="@+id/carrier"
93        android:layout_width="wrap_content"
94        android:layout_height="wrap_content"
95        android:layout_gravity="center_horizontal"
96        android:layout_marginBottom="8dip"
97        android:textAppearance="?android:attr/textAppearanceMedium"
98        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
99        android:drawablePadding="4dip"
100        android:singleLine="true"
101        android:ellipsize="marquee"
102        />
103
104</LinearLayout>
105