• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<com.android.setupwizardlib.GlifLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/setup_wizard_layout"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:icon="@drawable/ic_lock"
22    android:layout="@layout/suw_glif_blank_template">
23
24    <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
25        android:id="@+id/topLayout"
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:orientation="vertical">
29
30        <ScrollView
31            android:layout_width="match_parent"
32            android:layout_height="0dp"
33            android:layout_weight="2">
34
35            <LinearLayout
36                android:layout_width="match_parent"
37                android:layout_height="match_parent"
38                android:orientation="vertical">
39
40                <ImageView
41                    android:id="@+id/suw_layout_icon"
42                    style="@style/SuwGlifIcon"
43                    android:layout_width="wrap_content"
44                    android:layout_height="wrap_content"
45                    android:src="@drawable/ic_lock" />
46
47                <TextView
48                    android:id="@+id/headerText"
49                    style="@style/SuwGlifHeaderTitle"
50                    android:layout_width="match_parent"
51                    android:layout_height="wrap_content" />
52
53                <TextView
54                    style="@style/SuwDescription.Glif"
55                    android:id="@+id/detailsText"
56                    android:layout_width="match_parent"
57                    android:layout_height="wrap_content"
58                    android:layout_marginStart="?attr/suwMarginSides"
59                    android:layout_marginEnd="?attr/suwMarginSides" />
60
61            </LinearLayout>
62
63        </ScrollView>
64
65        <com.android.internal.widget.LockPatternView
66            android:id="@+id/lockPattern"
67            android:layout_width="312dp"
68            android:layout_height="0dp"
69            android:layout_weight="3"
70            android:layout_gravity="center_horizontal"/>
71
72        <LinearLayout
73            android:layout_width="match_parent"
74            android:layout_height="0dp"
75            android:layout_weight="1"
76            android:orientation="vertical">
77
78            <TextView
79                style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText"
80                android:accessibilityLiveRegion="polite"
81                android:id="@+id/errorText"
82                android:layout_width="wrap_content"
83                android:layout_height="0dp"
84                android:layout_weight="1"
85                android:layout_gravity="center_horizontal"
86                android:layout_marginTop="12dp"
87                android:layout_marginStart="12dp"
88                android:layout_marginEnd="12dp"
89                android:gravity="center_vertical"/>
90
91            <ImageView
92                android:id="@+id/fingerprintIcon"
93                android:layout_gravity="center_horizontal"
94                android:layout_width="wrap_content"
95                android:layout_height="wrap_content"
96                android:layout_alignParentBottom="true"
97                android:layout_marginBottom="24dp"
98                android:contentDescription="@string/confirm_fingerprint_icon_content_description"
99                android:visibility="gone"/>
100        </LinearLayout>
101
102        <Button
103            android:id="@+id/cancelButton"
104            style="@style/SuwGlifButton.Secondary"
105            android:layout_width="wrap_content"
106            android:layout_height="wrap_content"
107            android:layout_marginStart="?attr/suwMarginSides"
108            android:layout_marginEnd="?attr/suwMarginSides"
109            android:text="@string/cancel" />
110
111    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
112
113</com.android.setupwizardlib.GlifLayout>
114