blob: d8012bfeb54972bf0fae2fb1bb2c216a7858be08 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001<?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-->
Jim Miller5ecd8112013-01-09 18:50:26 -080019<com.android.keyguard.KeyguardPasswordView
Jim Millerdcb3d842012-08-23 19:18:12 -070020 xmlns:android="http://schemas.android.com/apk/res/android"
Jim Miller5ecd8112013-01-09 18:50:26 -080021 xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"
Jim Millerdcb3d842012-08-23 19:18:12 -070022 android:id="@+id/keyguard_password_view"
23 android:orientation="vertical"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent"
Jim Miller5ecd8112013-01-09 18:50:26 -080026 androidprv:layout_maxWidth="@dimen/keyguard_security_width"
27 androidprv:layout_maxHeight="@dimen/keyguard_security_height"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040028 android:gravity="bottom"
Svetoslav Ganovc4842c12012-10-31 14:33:32 -070029 android:contentDescription="@string/keyguard_accessibility_password_unlock"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040030 >
Jim Millerdcb3d842012-08-23 19:18:12 -070031
Daniel Sandler8a26bf52012-10-30 13:29:50 -040032 <Space
Jim Miller3af630c2012-09-26 14:29:18 -070033 android:layout_width="match_parent"
Adam Powell70bc9f22012-10-12 22:02:27 -070034 android:layout_height="0dp"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040035 android:layout_weight="1"
36 />
Jim Miller3af630c2012-09-26 14:29:18 -070037
Daniel Sandler8a26bf52012-10-30 13:29:50 -040038 <include layout="@layout/keyguard_message_area"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content" />
Jim Miller0b728242012-10-28 19:42:30 -070041
Daniel Sandler8a26bf52012-10-30 13:29:50 -040042 <!-- Password entry field -->
43 <!-- Note: the entire container is styled to look like the edit field,
44 since the backspace/IME switcher looks better inside -->
Chris Wrenc0ae9e62012-11-05 13:16:31 -050045 <FrameLayout
46 android:id="@+id/keyguard_bouncer_frame"
Jim Miller5ecd8112013-01-09 18:50:26 -080047 android:background="@drawable/kg_bouncer_bg_white"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040048 android:layout_height="wrap_content"
49 android:layout_width="match_parent"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040050 >
Chris Wrenc0ae9e62012-11-05 13:16:31 -050051 <LinearLayout
Daniel Sandler8a26bf52012-10-30 13:29:50 -040052 android:layout_height="wrap_content"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050053 android:layout_width="match_parent"
54 android:orientation="horizontal"
55 android:background="#70000000"
56 android:layout_marginTop="8dp"
57 android:layout_marginBottom="8dp"
58 >
Jim Millerdcb3d842012-08-23 19:18:12 -070059
Chris Wrenc0ae9e62012-11-05 13:16:31 -050060 <EditText android:id="@+id/passwordEntry"
61 android:layout_width="0dip"
62 android:layout_height="wrap_content"
63 android:layout_weight="1"
64 android:gravity="center_horizontal"
65 android:layout_gravity="center_vertical"
Jim Miller5ecd8112013-01-09 18:50:26 -080066 android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050067 android:singleLine="true"
68 android:textStyle="normal"
69 android:inputType="textPassword"
70 android:textSize="36sp"
71 android:background="@null"
72 android:textAppearance="?android:attr/textAppearanceMedium"
73 android:textColor="#ffffffff"
74 android:imeOptions="flagForceAscii|actionDone"
75 />
Jim Millerdcb3d842012-08-23 19:18:12 -070076
Chris Wrenc0ae9e62012-11-05 13:16:31 -050077 <ImageView android:id="@+id/switch_ime_button"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
Jim Miller5ecd8112013-01-09 18:50:26 -080080 android:src="@drawable/ic_lockscreen_ime"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050081 android:clickable="true"
82 android:padding="8dip"
83 android:layout_gravity="center"
84 android:background="?android:attr/selectableItemBackground"
85 android:visibility="gone"
86 />
Daniel Sandler8a26bf52012-10-30 13:29:50 -040087
Chris Wrenc0ae9e62012-11-05 13:16:31 -050088 </LinearLayout>
89 </FrameLayout>
Adam Powell97997142012-11-06 21:32:42 -080090
91 <Space
92 android:layout_width="match_parent"
93 android:layout_height="0dp"
94 android:layout_weight="1"
95 />
96
Jim Miller9e0a2502012-11-07 21:23:32 -080097 <include layout="@layout/keyguard_eca"
Adam Powell70bc9f22012-10-12 22:02:27 -070098 android:id="@+id/keyguard_selector_fade_container"
99 android:layout_width="match_parent"
100 android:layout_height="wrap_content"
101 android:orientation="vertical"
102 android:layout_gravity="bottom|center_horizontal"
103 android:gravity="center_horizontal" />
104
Jim Miller5ecd8112013-01-09 18:50:26 -0800105</com.android.keyguard.KeyguardPasswordView>