1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2018 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<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <include layout="@layout/toolbar"/>
25
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        android:layout_marginHorizontal="@dimen/car_ui_margin"
30        android:paddingBottom="@dimen/action_bar_height"
31        android:paddingTop="@dimen/action_bar_height"
32        android:orientation="horizontal">
33
34        <!-- Start side: lock pattern -->
35        <FrameLayout
36            android:layout_width="0dp"
37            android:layout_height="match_parent"
38            android:layout_gravity="center_vertical"
39            android:layout_weight="@integer/content_weight">
40
41            <com.android.internal.widget.LockPatternView
42                android:id="@+id/lockPattern"
43                style="@style/LockPattern"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:layout_gravity="center"/>
47        </FrameLayout>
48
49        <!-- End side: instructions and messages -->
50        <LinearLayout
51            android:layout_width="0dp"
52            android:layout_height="match_parent"
53            android:layout_weight="@integer/illustration_weight"
54            android:gravity="center"
55            android:orientation="vertical">
56
57            <ImageView
58                android:layout_width="@dimen/icon_size"
59                android:layout_height="@dimen/icon_size"
60                android:src="@drawable/ic_lock"/>
61
62            <TextView
63                android:id="@+id/title_text"
64                android:layout_width="match_parent"
65                android:layout_height="wrap_content"
66                android:layout_marginBottom="@dimen/choose_title_text_margin_bottom"
67                android:gravity="center"
68                android:text="@string/lockscreen_choose_your_pattern"
69                android:textAppearance="?android:attr/textAppearanceLarge"/>
70
71            <TextView
72                android:id="@+id/description_text"
73                android:layout_width="match_parent"
74                android:layout_height="wrap_content"
75                android:gravity="center"
76                android:textAppearance="?android:attr/textAppearanceMedium"/>
77
78        </LinearLayout>
79    </LinearLayout>
80</LinearLayout>
81