keyguard_sim_pin_view.xml revision 0ff7f010f8bfd011f0915031b02739ae3bee401e
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<!-- This is the SIM PIN view that allows the user to enter a SIM PIN to unlock the device. -->
20<com.android.internal.policy.impl.keyguard.KeyguardSimPinView
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    android:id="@+id/keyguard_sim_pin_view"
23    android:orientation="vertical"
24    android:layout_width="match_parent"
25    android:layout_height="match_parent"
26    android:gravity="center_horizontal">
27
28    <LinearLayout
29        android:layout_width="match_parent"
30        android:layout_height="0dp"
31        android:layout_weight="1"
32        android:orientation="vertical">
33
34        <LinearLayout
35            android:layout_height="0dip"
36            android:layout_width="match_parent"
37            android:layout_weight="1"
38            android:orientation="vertical"
39            android:gravity="center">
40
41            <ImageView
42                android:layout_width="wrap_content"
43                android:layout_height="wrap_content"
44                android:src="@drawable/ic_lockscreen_sim"/>
45
46            <include layout="@layout/keyguard_sim_puk_pin_navigation"/>
47         </LinearLayout>
48
49        <!-- Password entry field -->
50        <!-- Note: the entire container is styled to look like the edit field,
51             since the backspace/IME switcher looks better inside -->
52        <LinearLayout
53            android:layout_width="match_parent"
54            android:layout_height="wrap_content"
55            android:orientation="horizontal"
56            android:layout_marginEnd="4dip"
57            android:layout_marginStart="4dip"
58            android:gravity="center_vertical"
59            android:background="#70000000">
60
61            <!-- displays dots as user enters pin -->
62            <EditText android:id="@+id/sim_pin_entry"
63                android:layout_width="0dip"
64                android:layout_height="wrap_content"
65                android:layout_weight="1"
66                android:maxLines="1"
67                android:singleLine="true"
68                android:gravity="center_horizontal"
69                android:layout_gravity="center_vertical"
70                android:layout_marginStart="@*android:dimen/keyguard_lockscreen_pin_margin_left"
71                android:textStyle="normal"
72                android:inputType="textPassword"
73                android:textSize="36sp"
74                android:background="@null"
75                android:textAppearance="?android:attr/textAppearanceMedium"
76                android:textColor="#ffffffff"
77                android:imeOptions="flagForceAscii|actionDone"
78            />
79
80            <ImageButton android:id="@+id/delete_button"
81                android:layout_width="wrap_content"
82                android:layout_height="wrap_content"
83                android:layout_gravity="center_vertical"
84                android:src="@android:drawable/ic_input_delete"
85                android:clickable="true"
86                android:padding="8dip"
87                android:background="?android:attr/selectableItemBackground"
88            />
89        </LinearLayout>
90
91        <!-- Numeric keyboard -->
92        <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
93            android:layout_width="match_parent"
94            android:layout_marginStart="4dip"
95            android:layout_marginEnd="4dip"
96            android:paddingTop="4dip"
97            android:paddingBottom="4dip"
98            android:background="#40000000"
99            android:keyBackground="@*android:drawable/btn_keyboard_key_ics"
100            android:clickable="true"
101        />
102    </LinearLayout>
103
104    <include layout="@layout/keyguard_emergency_carrier_area"
105        android:id="@+id/keyguard_selector_fade_container"
106        android:layout_width="match_parent"
107        android:layout_height="wrap_content"
108        android:orientation="vertical"
109        android:layout_gravity="bottom|center_horizontal"
110        android:gravity="center_horizontal" />
111
112</com.android.internal.policy.impl.keyguard.KeyguardSimPinView>
113