1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2015 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<!-- IMPORTANT NOTE: Even if this layout is used with a view that handles its scroll internally,
19     like WebView or RecyclerView, the illustration will not scroll away, since this view doesn't
20     know about the scrolling view at all. It is recommended that you add the illustration as a
21     header to the RecyclerView or avoid using this layout (e.g. use suw_no_scroll_template_short
22     instead of suw_no_scroll_template) -->
23<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24    xmlns:tools="http://schemas.android.com/tools"
25    android:layout_width="match_parent"
26    android:layout_height="match_parent"
27    android:orientation="vertical">
28
29    <LinearLayout
30        android:layout_width="match_parent"
31        android:layout_height="0dp"
32        android:layout_weight="1"
33        android:orientation="vertical">
34
35        <com.android.setupwizardlib.view.Illustration
36            android:id="@+id/suw_layout_decor"
37            android:layout_width="match_parent"
38            android:layout_height="wrap_content"
39            android:background="@drawable/suw_layout_background"
40            android:elevation="@dimen/suw_title_area_elevation"
41            android:tag="stickyContainer"
42            tools:ignore="UnusedAttribute">
43
44            <TextView
45                android:id="@+id/suw_layout_title"
46                style="@style/SuwHeaderTitle"
47                android:layout_width="match_parent"
48                android:layout_height="wrap_content"
49                android:tag="sticky" />
50
51        </com.android.setupwizardlib.view.Illustration>
52
53        <include layout="@layout/suw_progress_bar_stub" />
54
55        <FrameLayout
56            android:id="@+id/suw_layout_content"
57            android:layout_width="match_parent"
58            android:layout_height="0dp"
59            android:layout_weight="1"
60            tools:ignore="NestedWeights" />
61        <!-- Ignore NestedWeights: Needed to fill the screen's height with the layout content -->
62
63    </LinearLayout>
64
65    <com.android.setupwizardlib.view.NavigationBar
66        android:id="@+id/suw_layout_navigation_bar"
67        style="@style/SuwNavBarTheme"
68        android:layout_width="match_parent"
69        android:layout_height="@dimen/suw_navbar_height" />
70
71</LinearLayout>
72