• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2014 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License")
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17<com.android.setupwizardlib.GlifLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:icon="@drawable/ic_lock"
23    settings:suwHeaderText="@string/lockpassword_choose_your_password_header">
24
25    <LinearLayout
26        style="@style/SuwContentFrame"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        android:gravity="center_horizontal"
30        android:orientation="vertical">
31
32        <!-- header text ('Enter Pin') -->
33        <TextView
34            android:id="@+id/headerText"
35            android:layout_width="match_parent"
36            android:layout_height="wrap_content"
37            android:accessibilityLiveRegion="polite"
38            android:gravity="center"
39            android:lines="2"
40            android:textAppearance="?android:attr/textAppearanceMedium"/>
41
42        <!-- Password entry field -->
43        <EditText android:id="@+id/password_entry"
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:layout_gravity="center"
47            android:gravity="center"
48            android:inputType="textPassword"
49            android:imeOptions="actionNext|flagNoExtractUi"
50            android:textSize="24sp"
51            style="@style/TextAppearance.PasswordEntry"/>
52
53        <LinearLayout
54                android:id="@+id/bottom_container"
55                android:layout_width="match_parent"
56                android:layout_height="match_parent"
57                android:orientation="vertical">
58
59            <android.support.v7.widget.RecyclerView
60                    android:id="@+id/password_requirements_view"
61                    android:layout_width="match_parent"
62                    android:layout_height="wrap_content"/>
63
64            <LinearLayout
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:clipChildren="false"
68                android:clipToPadding="false"
69                android:gravity="end"
70                android:orientation="horizontal">
71
72                <!-- left : cancel -->
73                <Button android:id="@+id/cancel_button"
74                    style="@style/SetupWizardButton.Negative"
75                    android:layout_width="wrap_content"
76                    android:layout_height="wrap_content"
77                    android:text="@string/lockpassword_cancel_label" />
78
79                <Space
80                    android:layout_width="0dp"
81                    android:layout_height="0dp"
82                    android:layout_weight="1" />
83
84                <!-- right : continue -->
85                <Button android:id="@+id/next_button"
86                    style="@style/SetupWizardButton.Positive"
87                    android:layout_width="wrap_content"
88                    android:layout_height="wrap_content"
89                    android:text="@string/lockpassword_continue_label" />
90            </LinearLayout>
91        </LinearLayout>
92    </LinearLayout>
93
94</com.android.setupwizardlib.GlifLayout>
95