keyguard_screen_glogin_unlock.xml revision 024e429b49e70469fa20b4e3cac17e1921c68f9d
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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    android:background="@android:color/background_dark"
24        >
25    <ScrollView
26        android:layout_width="match_parent"
27        android:layout_height="0px"
28        android:layout_weight="1"
29        android:layout_above="@+id/emergencyCall">
30        <RelativeLayout
31            android:layout_width="match_parent"
32            android:layout_height="match_parent">
33
34            <TextView
35                android:id="@+id/topHeader"
36                android:layout_width="match_parent"
37                android:layout_height="64dip"
38                android:layout_alignParentTop="true"
39                android:layout_marginLeft="4dip"
40                android:textAppearance="?android:attr/textAppearanceMedium"
41                android:gravity="center_vertical"
42                android:drawableLeft="@drawable/ic_lock_idle_lock"
43                android:drawablePadding="5dip"
44                />
45
46            <!-- spacer below header -->
47            <View
48                android:id="@+id/spacerTop"
49                android:layout_width="match_parent"
50                android:layout_height="1dip"
51                android:layout_below="@id/topHeader"
52                android:background="@drawable/divider_horizontal_dark"/>
53
54            <TextView
55                android:id="@+id/instructions"
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:layout_below="@+id/spacerTop"
59                android:layout_marginTop="8dip"
60                android:layout_marginLeft="9dip"
61                android:textAppearance="?android:attr/textAppearanceSmall"
62                android:text="@android:string/lockscreen_glogin_instructions"
63                />
64
65            <EditText
66                android:id="@+id/login"
67                android:layout_width="match_parent"
68                android:layout_height="wrap_content"
69                android:layout_below="@id/instructions"
70                android:layout_marginTop="8dip"
71                android:layout_marginLeft="7dip"
72                android:layout_marginRight="7dip"
73                android:hint="@android:string/lockscreen_glogin_username_hint"
74                android:inputType="textEmailAddress"
75                />
76
77            <EditText
78                android:id="@+id/password"
79                android:layout_width="match_parent"
80                android:layout_height="wrap_content"
81                android:layout_below="@id/login"
82                android:layout_marginTop="15dip"
83                android:layout_marginLeft="7dip"
84                android:layout_marginRight="7dip"
85                android:inputType="textPassword"
86                android:hint="@android:string/lockscreen_glogin_password_hint"
87                android:nextFocusRight="@+id/ok"
88                android:nextFocusDown="@+id/ok"
89                />
90
91            <!-- ok below password, aligned to right of screen -->
92            <Button
93                android:id="@+id/ok"
94                android:layout_width="wrap_content"
95                android:layout_height="wrap_content"
96                android:layout_below="@id/password"
97                android:layout_marginTop="7dip"
98                android:layout_marginRight="7dip"
99                android:layout_alignParentRight="true"
100                android:text="@android:string/lockscreen_glogin_submit_button"
101                />
102
103            <TextView
104                android:layout_width="match_parent"
105                android:layout_height="wrap_content"
106                android:layout_below="@id/ok"
107                android:layout_marginTop="50dip"
108                android:text="@android:string/lockscreen_glogin_account_recovery_hint"
109                android:textAppearance="?android:attr/textAppearanceMedium"
110                android:gravity="center_horizontal"
111                />
112
113        </RelativeLayout>
114    </ScrollView>
115
116    <!-- spacer above emergency call -->
117    <View
118        android:layout_width="match_parent"
119        android:layout_height="1dip"
120        android:layout_marginBottom="4dip"
121
122        android:background="@drawable/divider_horizontal_dark"/>
123
124    <!-- emergency call button at bottom center -->
125    <Button
126        android:id="@+id/emergencyCall"
127        android:layout_width="wrap_content"
128        android:layout_height="wrap_content"
129        android:layout_gravity="center"
130        android:drawableLeft="@drawable/ic_emergency"
131        android:drawablePadding="8dip"
132        android:text="@android:string/lockscreen_emergency_call"
133        android:visibility="gone"
134        />
135
136</LinearLayout>
137