• 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
18<!-- Used in phone portrait and tablet, as referenced in alias.xml. -->
19<com.google.android.setupdesign.GlifLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/setup_wizard_layout"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    android:icon="@drawable/ic_lock">
25
26    <!-- takes up all space above button bar at bottom -->
27    <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
28        android:id="@+id/topLayout"
29        style="@style/SudContentFrame"
30        android:layout_width="match_parent"
31        android:layout_height="match_parent"
32        android:gravity="center"
33        android:clipChildren="false"
34        android:clipToPadding="false"
35        android:orientation="vertical"
36        android:paddingLeft="0dp"
37        android:paddingRight="0dp">
38
39        <TextView
40            android:id="@+id/headerText"
41            style="@style/SudDescription.Glif"
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            android:minLines="2"
45            android:gravity="center"
46            android:paddingStart="?attr/sudMarginStart"
47            android:paddingEnd="?attr/sudMarginEnd"
48            android:fontFamily="@*android:string/config_headlineFontFamily" />
49
50        <com.google.android.setupdesign.view.FillContentLayout
51            style="@style/LockPatternContainerStyle"
52            android:layout_width="wrap_content"
53            android:layout_height="0dp"
54            android:layout_weight="1">
55
56            <com.android.internal.widget.LockPatternView
57                android:id="@+id/lockPattern"
58                android:layout_width="match_parent"
59                android:layout_height="match_parent"
60                android:layout_gravity="center"/>
61
62        </com.google.android.setupdesign.view.FillContentLayout>
63
64        <TextView android:id="@+id/footerText"
65                  android:layout_width="wrap_content"
66                  android:layout_height="wrap_content"
67                  android:layout_gravity="center_horizontal"
68                  android:minHeight="50dip"
69                  android:textSize="14sp"
70                  android:visibility="gone"/>
71
72        <Button
73            android:id="@+id/screen_lock_options"
74            style="@style/SudGlifButton.Tertiary"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:text="@string/setup_lock_settings_options_button_label"
78            android:visibility="gone"/>
79    </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
80
81</com.google.android.setupdesign.GlifLayout>
82