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