keyguard_screen_sim_pin_landscape.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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:background="@android:color/background_dark" 24 > 25 26 <!-- displays dots as user enters pin --> 27 <LinearLayout android:id="@+id/pinDisplayGroup" 28 android:orientation="horizontal" 29 android:layout_centerInParent="true" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:addStatesFromChildren="true" 33 android:gravity="center_vertical" 34 android:baselineAligned="false" 35 android:paddingRight="0dip" 36 android:layout_marginRight="30dip" 37 android:layout_marginLeft="30dip" 38 android:background="@android:drawable/edit_text" 39 > 40 41 <EditText android:id="@+id/pinDisplay" 42 android:layout_width="0dip" 43 android:layout_weight="1" 44 android:layout_height="match_parent" 45 android:maxLines="1" 46 android:background="@null" 47 android:textSize="32sp" 48 android:inputType="textPassword" 49 /> 50 51 <ImageButton android:id="@+id/backspace" 52 android:src="@android:drawable/ic_input_delete" 53 android:layout_width="wrap_content" 54 android:layout_height="match_parent" 55 android:layout_marginTop="2dip" 56 android:layout_marginRight="2dip" 57 android:layout_marginBottom="2dip" 58 android:gravity="center" 59 /> 60 61 </LinearLayout> 62 63 <!-- header text ('Enter Pin Code') --> 64 <TextView android:id="@+id/headerText" 65 android:layout_above="@id/pinDisplayGroup" 66 android:layout_centerHorizontal="true" 67 android:layout_marginBottom="30dip" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:textSize="24sp" 71 /> 72 73 <LinearLayout 74 android:orientation="horizontal" 75 android:layout_alignParentBottom="true" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:layout_marginBottom="8dip" 79 android:layout_marginLeft="8dip" 80 android:layout_marginRight="8dip"> 81 82 <Button android:id="@+id/ok" 83 android:text="@android:string/ok" 84 android:layout_alignParentBottom="true" 85 android:layout_width="0dip" 86 android:layout_height="wrap_content" 87 android:layout_weight="1.0" 88 android:layout_marginBottom="8dip" 89 android:layout_marginRight="8dip" 90 android:textSize="18sp" 91 /> 92 93 <Button android:id="@+id/emergencyCall" 94 android:text="@android:string/lockscreen_emergency_call" 95 android:layout_alignParentBottom="true" 96 android:layout_centerHorizontal="true" 97 android:layout_width="0dip" 98 android:layout_height="wrap_content" 99 android:layout_weight="1.0" 100 android:layout_marginBottom="8dip" 101 android:layout_marginLeft="8dip" 102 android:textSize="18sp" 103 android:drawableLeft="@drawable/ic_emergency" 104 android:drawablePadding="8dip" 105 /> 106 </LinearLayout> 107 108</RelativeLayout> 109