keyguard_screen_password_portrait.xml revision 858f8eaac75bcd1b296b41837caf3dae82d1d72a
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<GridLayout
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    android:gravity="center_horizontal">
25
26    <com.android.internal.widget.DigitalClock android:id="@+id/time"
27        android:layout_marginBottom="18dip"
28        android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"
29        android:layout_gravity="right">
30
31        <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
32        top of the other. Hence the redundant layout... -->
33        <TextView android:id="@+id/timeDisplayBackground"
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:singleLine="true"
37            android:ellipsize="none"
38            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
39            android:textAppearance="?android:attr/textAppearanceMedium"
40            android:layout_marginBottom="6dip"
41            android:textColor="@*android:color/lockscreen_clock_background"
42            />
43
44        <TextView android:id="@+id/timeDisplayForeground"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:singleLine="true"
48            android:ellipsize="none"
49            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
50            android:textAppearance="?android:attr/textAppearanceMedium"
51            android:layout_marginBottom="6dip"
52            android:textColor="@color/lockscreen_clock_foreground"
53            />
54
55    </com.android.internal.widget.DigitalClock>
56
57    <LinearLayout
58        android:orientation="horizontal"
59        android:layout_gravity="right"
60        android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin">
61
62        <TextView
63            android:id="@+id/date"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:singleLine="true"
67            android:ellipsize="marquee"
68            android:textAppearance="?android:attr/textAppearanceMedium"
69            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
70            />
71
72        <TextView
73            android:id="@+id/alarm_status"
74            android:layout_width="wrap_content"
75            android:layout_height="wrap_content"
76            android:layout_marginLeft="16dip"
77            android:singleLine="true"
78            android:ellipsize="marquee"
79            android:textAppearance="?android:attr/textAppearanceMedium"
80            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
81            android:drawablePadding="4dip"
82            />
83
84    </LinearLayout>
85
86    <TextView
87        android:id="@+id/status1"
88        android:layout_gravity="right"
89        android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"
90        android:singleLine="true"
91        android:ellipsize="marquee"
92        android:textAppearance="?android:attr/textAppearanceMedium"
93        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
94        android:drawablePadding="4dip"
95        />
96
97    <!-- Password entry field -->
98    <LinearLayout
99        android:layout_gravity="center_vertical|fill_horizontal"
100        android:orientation="horizontal"
101        android:layout_marginLeft="16dip"
102        android:layout_marginRight="16dip">
103
104        <EditText android:id="@+id/passwordEntry"
105            android:layout_width="0dip"
106            android:layout_height="wrap_content"
107            android:layout_weight="1"
108            android:gravity="center_horizontal"
109            android:singleLine="true"
110            android:textStyle="normal"
111            android:inputType="textPassword"
112            android:textSize="36sp"
113            android:background="@drawable/lockscreen_password_field_dark"
114            android:textAppearance="?android:attr/textAppearanceMedium"
115            android:textColor="#ffffffff"
116            android:imeOptions="actionDone"
117            android:suggestionsEnabled="false"/>
118
119        <ImageView android:id="@+id/switch_ime_button"
120            android:layout_width="wrap_content"
121            android:layout_height="wrap_content"
122            android:src="@drawable/ic_lockscreen_ime"
123            android:clickable="true"
124            android:padding="8dip"
125            android:layout_gravity="center"
126            android:background="?android:attr/selectableItemBackground"
127            android:visibility="gone"
128            />
129
130    </LinearLayout>
131
132    <!-- Numeric keyboard -->
133    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
134        android:layout_width="match_parent"
135        android:layout_height="wrap_content"
136        android:layout_marginRight="4dip"
137        android:paddingTop="4dip"
138        android:paddingBottom="4dip"
139        android:background="#40000000"
140        android:keyBackground="@*android:drawable/btn_keyboard_key_ics"
141        android:visibility="gone"
142    />
143
144    <TextView
145        android:id="@+id/carrier"
146        android:layout_width="wrap_content"
147        android:layout_height="wrap_content"
148        android:layout_gravity="center_horizontal"
149        android:textAppearance="?android:attr/textAppearanceMedium"
150        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
151        android:drawablePadding="4dip"
152        android:singleLine="true"
153        android:ellipsize="marquee"
154        />
155
156    <Button
157        android:id="@+id/emergencyCallButton"
158        android:layout_width="wrap_content"
159        android:layout_height="wrap_content"
160        android:layout_marginTop="4dip"
161        android:layout_gravity="center_horizontal"
162        android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
163        style="?android:attr/buttonBarButtonStyle"
164        android:drawablePadding="4dip"
165        android:text="@*android:string/lockscreen_emergency_call"
166        android:visibility="gone"
167        />
168
169    <!-- Music transport control -->
170    <include android:id="@+id/transport"
171        layout="@layout/keyguard_transport_control"
172        android:layout_row="0"
173        android:layout_column="0"
174        android:layout_rowSpan="3"
175        android:layout_columnSpan="1"
176        android:layout_gravity="fill"
177        />
178
179</GridLayout>
180