• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:fillViewport="true">
23
24    <LinearLayout
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:orientation="vertical"
28        android:gravity="center_horizontal">
29
30        <LinearLayout
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:orientation="horizontal">
34            <!-- "Enter PIN(Password) to unlock" -->
35            <TextView android:id="@+id/headerText"
36                android:layout_width="0dip"
37                android:layout_height="wrap_content"
38                android:layout_weight="1"
39                android:orientation="horizontal"
40                android:layout_marginEnd="6dip"
41                android:layout_marginStart="6dip"
42                android:layout_marginTop="10dip"
43                android:layout_marginBottom="10dip"
44                android:gravity="start"
45                android:ellipsize="marquee"
46                android:textAppearance="?android:attr/textAppearanceMedium"
47            />
48
49            <!-- Password entry field -->
50            <EditText android:id="@+id/password_entry"
51                android:layout_width="0dip"
52                android:layout_height="wrap_content"
53                android:layout_marginTop="5dip"
54                android:layout_marginBottom="5dip"
55                android:layout_gravity="center"
56                android:layout_weight="1"
57                android:inputType="textPassword"
58                android:imeOptions="actionNext|flagNoExtractUi"
59                android:gravity="center"
60                android:textSize="24sp"
61                style="@style/TextAppearance.PasswordEntry"
62            />
63        </LinearLayout>
64
65        <!-- Alphanumeric keyboard -->
66        <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
67            android:layout_alignParentBottom="true"
68            android:layout_width="match_parent"
69            android:layout_height="wrap_content"
70            android:background="#00000000"
71            android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
72            android:visibility="gone"
73        />
74
75        <RelativeLayout
76            android:layout_width="match_parent"
77            android:layout_height="0dip"
78            android:layout_weight="1">
79            <LinearLayout
80                style="@style/SecurityPreferenceButtonContainer"
81                android:orientation="horizontal"
82                android:layout_alignParentEnd="true"
83                android:layout_alignParentBottom="true">
84
85                <!-- left : cancel -->
86                <Button android:id="@+id/cancel_button"
87                    style="@style/SecurityPreferenceButton"
88                    android:text="@string/lockpassword_cancel_label"/>
89
90                <!-- right : continue -->
91                <Button android:id="@+id/next_button"
92                    style="@style/SecurityPreferenceButton"
93                    android:text="@string/lockpassword_continue_label"/>
94
95            </LinearLayout>
96        </RelativeLayout>
97
98    </LinearLayout>
99
100</ScrollView>
101