• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<com.android.keyguard.KeyguardPasswordView
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    xmlns:androidprv="http://schemas.android.com/apk/res-auto"
22    android:id="@+id/keyguard_password_view"
23    android:orientation="vertical"
24    android:layout_width="match_parent"
25    android:layout_height="match_parent"
26    androidprv:layout_maxWidth="@dimen/keyguard_security_width"
27    android:layout_gravity="center_horizontal|bottom"
28    android:gravity="bottom"
29    >
30    <include layout="@layout/keyguard_bouncer_message_area"/>
31
32    <com.android.systemui.bouncer.ui.BouncerMessageView
33        android:id="@+id/bouncer_message_view"
34        android:screenReaderFocusable="true"
35        android:accessibilityLiveRegion="polite"
36        android:layout_width="match_parent"
37        android:layout_height="wrap_content"
38        android:orientation="vertical"
39    />
40
41    <Space
42        android:layout_width="match_parent"
43        android:layout_height="0dp"
44        android:layout_weight="7"
45        />
46
47      <!-- Password entry field -->
48      <FrameLayout
49         android:layout_height="wrap_content"
50         android:layout_width="280dp"
51         android:layout_gravity="center_horizontal"
52         android:theme="?attr/passwordStyle"
53         >
54
55         <EditText android:id="@+id/passwordEntry"
56             android:layout_width="match_parent"
57             android:layout_height="wrap_content"
58             android:contentDescription="@string/keyguard_accessibility_password"
59             android:gravity="center"
60             android:layout_gravity="center"
61             android:singleLine="true"
62             android:textStyle="normal"
63             android:inputType="textPassword"
64             android:textSize="16sp"
65             android:textAppearance="?android:attr/textAppearanceMedium"
66             android:imeOptions="flagForceAscii|actionDone"
67             android:textCursorDrawable="@null"
68             android:maxLength="500"
69             />
70
71         <ImageView android:id="@+id/switch_ime_button"
72             android:layout_width="wrap_content"
73             android:layout_height="wrap_content"
74             android:src="@drawable/ic_lockscreen_ime"
75             android:contentDescription="@string/accessibility_ime_switch_button"
76             android:clickable="true"
77             android:layout_marginRight="8dp"
78             android:padding="12dip"
79             android:tint="?android:attr/textColorPrimary"
80             android:layout_gravity="end|center_vertical"
81             android:background="@drawable/bouncer_input_method_background"
82             android:visibility="gone"
83             />
84       </FrameLayout>
85
86    <Space
87        android:layout_width="match_parent"
88        android:layout_height="0dp"
89        android:layout_weight="2"
90        />
91
92    <include layout="@layout/keyguard_eca"
93             android:id="@+id/keyguard_selector_fade_container"
94             android:layout_width="match_parent"
95             android:layout_height="wrap_content"
96             android:layout_marginBottom="12dp"
97             android:orientation="vertical"
98             android:layout_gravity="bottom|center_horizontal"
99             android:gravity="center_horizontal" />
100
101</com.android.keyguard.KeyguardPasswordView>
102