Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 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 | --> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 19 | <com.android.keyguard.KeyguardPasswordView |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 21 | xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard" |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 22 | android:id="@+id/keyguard_password_view" |
| 23 | android:orientation="vertical" |
| 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="match_parent" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 26 | androidprv:layout_maxWidth="@dimen/keyguard_security_width" |
| 27 | androidprv:layout_maxHeight="@dimen/keyguard_security_height" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 28 | android:gravity="bottom" |
Svetoslav Ganov | c4842c1 | 2012-10-31 14:33:32 -0700 | [diff] [blame] | 29 | android:contentDescription="@string/keyguard_accessibility_password_unlock" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 30 | > |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 31 | |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 32 | <Space |
Jim Miller | 3af630c | 2012-09-26 14:29:18 -0700 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Adam Powell | 70bc9f2 | 2012-10-12 22:02:27 -0700 | [diff] [blame] | 34 | android:layout_height="0dp" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 35 | android:layout_weight="1" |
| 36 | /> |
Jim Miller | 3af630c | 2012-09-26 14:29:18 -0700 | [diff] [blame] | 37 | |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 38 | <include layout="@layout/keyguard_message_area" |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="wrap_content" /> |
Jim Miller | 0b72824 | 2012-10-28 19:42:30 -0700 | [diff] [blame] | 41 | |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 42 | <!-- 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 Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 45 | <FrameLayout |
| 46 | android:id="@+id/keyguard_bouncer_frame" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 47 | android:background="@drawable/kg_bouncer_bg_white" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 48 | android:layout_height="wrap_content" |
| 49 | android:layout_width="match_parent" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 50 | > |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 51 | <LinearLayout |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 52 | android:layout_height="wrap_content" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 53 | 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 Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 59 | |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 60 | <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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 66 | android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 67 | 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 Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 76 | |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 77 | <ImageView android:id="@+id/switch_ime_button" |
| 78 | android:layout_width="wrap_content" |
| 79 | android:layout_height="wrap_content" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 80 | android:src="@drawable/ic_lockscreen_ime" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 81 | android:clickable="true" |
| 82 | android:padding="8dip" |
| 83 | android:layout_gravity="center" |
| 84 | android:background="?android:attr/selectableItemBackground" |
| 85 | android:visibility="gone" |
| 86 | /> |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 87 | |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 88 | </LinearLayout> |
| 89 | </FrameLayout> |
Adam Powell | 9799714 | 2012-11-06 21:32:42 -0800 | [diff] [blame] | 90 | |
| 91 | <Space |
| 92 | android:layout_width="match_parent" |
| 93 | android:layout_height="0dp" |
| 94 | android:layout_weight="1" |
| 95 | /> |
| 96 | |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 97 | <include layout="@layout/keyguard_eca" |
Adam Powell | 70bc9f2 | 2012-10-12 22:02:27 -0700 | [diff] [blame] | 98 | 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 Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 105 | </com.android.keyguard.KeyguardPasswordView> |