<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingHorizontal="@dimen/floating_sheet_horizontal_padding"
    android:orientation="vertical">

    <FrameLayout
        android:id="@+id/floating_sheet_content_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/floating_sheet_content_background"
        android:clipToPadding="false"
        android:clipChildren="false">

        <include
            layout="@layout/floating_sheet_clock_style_content"
            android:id="@+id/clock_floating_sheet_style_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <ViewStub
            android:id="@+id/clock_color_content_stub"
            android:inflatedId="@+id/clock_floating_sheet_color_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <include
            layout="@layout/floating_sheet_clock_size_content"
            android:id="@+id/clock_floating_sheet_size_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    </FrameLayout>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginVertical="@dimen/floating_sheet_tab_toolbar_vertical_margin">

        <!-- Invisible placeholder to make sure the view does not shrink in height when the floating
         toolbar visibility is gone -->
        <include
            layout="@layout/floating_toolbar_tab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginVertical="@dimen/floating_tab_toolbar_padding_vertical"
            android:visibility="invisible" />

        <com.android.wallpaper.picker.customization.ui.view.FloatingToolbar
            android:id="@+id/floating_toolbar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center" />
    </FrameLayout>
</LinearLayout>
