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.motion.widget.MotionLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:id="@+id/picker_motion_layout"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    app:layoutDescription="@xml/customization_picker_layout_scene">
23
24    <FrameLayout
25        android:id="@+id/preview_header"
26        android:layout_width="0dp"
27        android:layout_height="@dimen/customization_picker_preview_header_expanded_height"
28        app:layout_constraintTop_toTopOf="parent"
29        app:layout_constraintStart_toStartOf="parent"
30        app:layout_constraintEnd_toEndOf="parent">
31
32        <androidx.viewpager2.widget.ViewPager2
33            android:id="@+id/preview_pager"
34            android:layout_width="match_parent"
35            android:layout_height="match_parent" />
36    </FrameLayout>
37
38    <androidx.core.widget.NestedScrollView
39        android:id="@+id/bottom_scroll_view"
40        android:layout_width="0dp"
41        android:layout_height="0dp"
42        app:layout_constraintTop_toBottomOf="@+id/preview_header"
43        app:layout_constraintStart_toStartOf="parent"
44        app:layout_constraintEnd_toEndOf="parent"
45        app:layout_constraintBottom_toBottomOf="parent">
46
47        <androidx.constraintlayout.motion.widget.MotionLayout
48            android:id="@+id/customization_option_container"
49            android:layout_width="match_parent"
50            android:layout_height="wrap_content"
51            android:paddingHorizontal="@dimen/customization_option_container_horizontal_padding"
52            app:layoutDescription="@xml/customization_option_container_layout_scene">
53
54            <LinearLayout
55                android:id="@+id/lock_customization_option_container"
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:showDividers="middle"
59                android:divider="@drawable/customization_option_entry_divider"
60                android:orientation="vertical" />
61
62            <LinearLayout
63                android:id="@+id/home_customization_option_container"
64                android:layout_width="match_parent"
65                android:layout_height="wrap_content"
66                android:showDividers="middle"
67                android:divider="@drawable/customization_option_entry_divider"
68                android:orientation="vertical" />
69        </androidx.constraintlayout.motion.widget.MotionLayout>
70    </androidx.core.widget.NestedScrollView>
71
72    <!-- Guideline for the preview in the secondary screen -->
73    <androidx.constraintlayout.widget.Guideline
74        android:id="@+id/preview_guideline_in_secondary_screen"
75        android:layout_width="wrap_content"
76        android:layout_height="wrap_content"
77        android:orientation="horizontal"
78        app:layout_constraintGuide_end="0dp" />
79
80    <FrameLayout
81        android:id="@+id/customization_picker_bottom_sheet"
82        android:layout_width="0dp"
83        android:layout_height="wrap_content"
84        app:layout_constraintStart_toStartOf="parent"
85        app:layout_constraintEnd_toEndOf="parent"
86        app:layout_constraintTop_toBottomOf="parent" />
87</androidx.constraintlayout.motion.widget.MotionLayout>
88