<?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">

    <LinearLayout
        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:paddingVertical="@dimen/floating_sheet_content_vertical_padding"
        android:orientation="vertical"
        android:clipChildren="false">

        <TextView
            android:id="@+id/color_type_tab_subhead"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:layout_marginHorizontal="@dimen/floating_sheet_content_horizontal_padding"
            android:gravity="center"
            android:text="@string/wallpaper_color_subheader"
            android:textColor="@color/system_on_surface"
            android:textSize="12sp" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/colors_horizontal_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dp"
            android:paddingHorizontal="@dimen/floating_sheet_content_horizontal_padding"
            android:clipChildren="false"
            android:clipToPadding="false" />

        <com.google.android.material.materialswitch.MaterialSwitch
            style="@style/SettingslibSwitchStyle.Expressive"
            android:id="@+id/dark_mode_toggle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="@dimen/floating_sheet_content_horizontal_padding"
            android:background="@null"
            android:focusable="true"
            android:minHeight="@dimen/accessibility_min_height"
            android:text="@string/mode_title"
            android:textAppearance="@style/SwitchSectionTitleTextStyle"
            android:theme="@style/Theme.Material3.DynamicColors.DayNight" />
    </LinearLayout>

    <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_horizontal"
        android:layout_marginVertical="@dimen/floating_sheet_tab_toolbar_vertical_margin"  />
</LinearLayout>
