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