1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2019 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    android:background="?android:colorPrimary">
24    <include layout="@layout/section_header"/>
25
26    <FrameLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent">
29
30        <LinearLayout
31            android:id="@+id/content_section"
32            android:layout_width="match_parent"
33            android:layout_height="match_parent"
34            android:orientation="horizontal">
35
36            <com.android.wallpaper.widget.PreviewPager
37                android:id="@+id/clock_preview_pager"
38                android:layout_width="0dp"
39                android:layout_height="match_parent"
40                android:layout_weight="1"
41                android:background="@color/secondary_color"
42                app:card_style="screen_aspect_ratio"/>
43
44            <LinearLayout
45                android:id="@+id/options_section"
46                android:layout_width="0dp"
47                android:layout_height="match_parent"
48                android:layout_weight="1"
49                android:paddingVertical="10dp"
50                android:orientation="vertical">
51
52                <androidx.recyclerview.widget.RecyclerView
53                    android:id="@+id/options_container"
54                    android:layout_width="match_parent"
55                    android:layout_height="0dp"
56                    android:layout_weight="1"/>
57
58                <RelativeLayout
59                    android:layout_width="match_parent"
60                    android:layout_height="wrap_content"
61                    android:paddingHorizontal="10dp">
62                    <Button
63                        android:id="@+id/apply_button"
64                        style="@style/ActionPrimaryButton"
65                        android:layout_width="wrap_content"
66                        android:layout_height="wrap_content"
67                        android:layout_alignParentEnd="true"
68                        android:text="@string/apply_btn"/>
69                </RelativeLayout>
70
71            </LinearLayout>
72        </LinearLayout>
73        <androidx.core.widget.ContentLoadingProgressBar
74            android:id="@+id/loading_indicator"
75            style="@android:style/Widget.DeviceDefault.ProgressBar"
76            android:layout_width="wrap_content"
77            android:layout_height="wrap_content"
78            android:layout_marginTop="200dp"
79            android:layout_gravity="center_horizontal|top"
80            android:indeterminate="true"/>
81
82        <FrameLayout
83            android:id="@+id/error_section"
84            android:layout_width="match_parent"
85            android:layout_height="match_parent"
86            android:visibility="gone">
87            <TextView
88                android:id="@+id/error_message"
89                style="@style/TitleTextAppearance"
90                android:layout_width="match_parent"
91                android:layout_height="wrap_content"
92                android:layout_gravity="center"
93                android:gravity="center"
94                android:text="@string/something_went_wrong"/>
95        </FrameLayout>
96    </FrameLayout>
97</LinearLayout>
98