1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2024 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<androidx.constraintlayout.widget.ConstraintLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:id="@+id/root_view"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <FrameLayout
24        android:id="@+id/nav_button"
25        android:layout_width="36dp"
26        android:layout_height="@dimen/wallpaper_control_button_size"
27        android:background="@drawable/nav_button_background"
28        android:layout_marginStart="@dimen/nav_button_start_margin"
29        app:layout_constraintStart_toStartOf="parent"
30        app:layout_constraintTop_toTopOf="@id/toolbar"
31        app:layout_constraintBottom_toBottomOf="@id/toolbar">
32        <View
33            android:id="@+id/nav_button_icon"
34            android:layout_width="24dp"
35            android:layout_height="24dp"
36            android:background="@drawable/ic_close_24dp"
37            android:layout_gravity="center" />
38    </FrameLayout>
39
40    <Toolbar
41        android:id="@+id/toolbar"
42        android:layout_width="0dp"
43        android:layout_height="?android:attr/actionBarSize"
44        android:theme="?android:attr/actionBarTheme"
45        android:importantForAccessibility="yes"
46        android:layout_gravity="top"
47        app:layout_constraintTop_toTopOf="parent"
48        app:layout_constraintStart_toEndOf="@+id/nav_button"
49        app:layout_constraintEnd_toStartOf="@+id/apply_button">
50        <TextView
51            android:id="@+id/custom_toolbar_title"
52            android:layout_width="wrap_content"
53            android:layout_height="wrap_content"
54            android:ellipsize="end"
55            android:maxLines="1"
56            android:textAppearance="@style/CollapsingToolbar.Collapsed"/>
57    </Toolbar>
58
59    <Button
60        android:id="@+id/apply_button"
61        android:layout_width="wrap_content"
62        android:layout_height="wrap_content"
63        android:minHeight="@dimen/touch_target_min_height"
64        android:layout_marginEnd="@dimen/apply_button_end_margin"
65        android:background="@drawable/apply_button_background"
66        android:text="@string/apply_btn"
67        android:textColor="@color/system_on_primary"
68        android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps"
69        app:layout_constraintEnd_toEndOf="parent"
70        app:layout_constraintTop_toTopOf="@id/toolbar"
71        app:layout_constraintBottom_toBottomOf="@id/toolbar"/>
72
73    <androidx.constraintlayout.motion.widget.MotionLayout
74        android:id="@+id/picker_motion_layout"
75        android:layout_width="0dp"
76        android:layout_height="0dp"
77        app:layout_constraintTop_toBottomOf="@+id/toolbar"
78        app:layout_constraintStart_toStartOf="parent"
79        app:layout_constraintEnd_toEndOf="parent"
80        app:layout_constraintBottom_toBottomOf="parent"
81        app:layoutDescription="@xml/customization_picker_layout_scene">
82
83        <FrameLayout
84            android:id="@+id/preview_header"
85            android:layout_width="0dp"
86            android:layout_height="@dimen/customization_picker_preview_header_expanded_height"
87            app:layout_constraintTop_toTopOf="parent"
88            app:layout_constraintStart_toStartOf="parent"
89            app:layout_constraintEnd_toEndOf="parent">
90
91            <androidx.viewpager2.widget.ViewPager2
92                android:id="@+id/preview_pager"
93                android:layout_width="match_parent"
94                android:layout_height="match_parent" />
95
96            <View
97                android:id="@+id/pager_touch_interceptor"
98                android:layout_width="match_parent"
99                android:layout_height="match_parent"
100                android:visibility="gone"
101                android:clickable="true" />
102        </FrameLayout>
103
104        <androidx.core.widget.NestedScrollView
105            android:id="@+id/bottom_scroll_view"
106            android:layout_width="0dp"
107            android:layout_height="0dp"
108            app:layout_constraintTop_toBottomOf="@+id/preview_header"
109            app:layout_constraintStart_toStartOf="parent"
110            app:layout_constraintEnd_toEndOf="parent"
111            app:layout_constraintBottom_toBottomOf="parent">
112
113            <androidx.constraintlayout.motion.widget.MotionLayout
114                android:id="@+id/customization_option_container"
115                android:layout_width="match_parent"
116                android:layout_height="wrap_content"
117                android:paddingHorizontal="@dimen/customization_option_container_horizontal_padding"
118                app:layoutDescription="@xml/customization_option_container_layout_scene">
119
120                <LinearLayout
121                    android:id="@+id/lock_customization_option_container"
122                    android:layout_width="match_parent"
123                    android:layout_height="wrap_content"
124                    android:showDividers="middle"
125                    android:divider="@drawable/customization_option_entry_divider"
126                    android:orientation="vertical" />
127
128                <LinearLayout
129                    android:id="@+id/home_customization_option_container"
130                    android:layout_width="match_parent"
131                    android:layout_height="wrap_content"
132                    android:showDividers="middle"
133                    android:divider="@drawable/customization_option_entry_divider"
134                    android:orientation="vertical" />
135            </androidx.constraintlayout.motion.widget.MotionLayout>
136        </androidx.core.widget.NestedScrollView>
137
138        <FrameLayout
139            android:id="@+id/customization_option_floating_sheet_container"
140            android:layout_width="0dp"
141            android:layout_height="wrap_content"
142            app:layout_constraintStart_toStartOf="parent"
143            app:layout_constraintEnd_toEndOf="parent"
144            app:layout_constraintTop_toBottomOf="parent" />
145    </androidx.constraintlayout.motion.widget.MotionLayout>
146</androidx.constraintlayout.widget.ConstraintLayout>
147
148