keyguard_account_view.xml revision cf2b7a261d9d4db346a73c11eeb3ae73bb11ebb6
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, 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.internal.policy.impl.keyguard.KeyguardAccountView
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/keyguard_account_view"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    android:layout_maxWidth="@dimen/keyguard_security_width"
25    android:layout_maxHeight="@dimen/keyguard_security_height"
26    android:orientation="vertical">
27
28    <include layout="@layout/keyguard_message_area"
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content" />
31
32    <RelativeLayout
33        android:layout_width="match_parent"
34        android:layout_height="0dip"
35        android:layout_weight="1">
36
37        <EditText
38            android:id="@+id/login"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:layout_marginTop="8dip"
42            android:layout_marginStart="7dip"
43            android:layout_marginEnd="7dip"
44            android:layout_alignParentTop="true"
45            android:hint="@string/kg_login_username_hint"
46            android:inputType="textEmailAddress"
47            />
48
49        <EditText
50            android:id="@+id/password"
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:layout_below="@id/login"
54            android:layout_toLeftOf="@+id/ok"
55            android:layout_marginTop="15dip"
56            android:layout_marginStart="7dip"
57            android:layout_marginEnd="7dip"
58            android:inputType="textPassword"
59            android:hint="@string/kg_login_password_hint"
60            android:nextFocusRight="@+id/ok"
61            android:nextFocusDown="@+id/ok"
62            />
63
64        <!-- ok below password, aligned to right of screen -->
65        <Button
66            android:id="@+id/ok"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:layout_margin="7dip"
70            android:layout_alignParentEnd="true"
71            android:layout_below="@id/login"
72            android:text="@string/kg_login_submit_button"
73            />
74
75    </RelativeLayout>
76
77    <!--  no room for ECA on this screen right now
78    <include layout="@layout/keyguard_emergency_carrier_area"
79        android:id="@+id/keyguard_selector_fade_container"
80        android:layout_width="match_parent"
81        android:layout_height="wrap_content"
82        android:orientation="vertical"
83        android:layout_gravity="bottom|center_horizontal"
84        android:gravity="center_horizontal" />
85    -->
86
87</com.android.internal.policy.impl.keyguard.KeyguardAccountView>
88