<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/ntp_customization_feed_bottom_sheet"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

<androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="@dimen/ntp_customization_bottom_sheet_layout_padding_bottom">

    <include layout="@layout/ntp_customization_drag_handle_bar" />

    <org.chromium.ui.widget.TextViewWithLeading
        android:id="@+id/bottom_sheet_title"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="start"
        android:textAppearance="@style/TextAppearance.Headline.Primary"
        android:text="@string/ntp_customization_mvt_settings_title"
        android:focusable="true"
        android:layout_marginStart="@dimen/ntp_customization_ntp_cards_title_margin"
        android:layout_marginTop="@dimen/ntp_customization_bottom_sheet_layout_padding_bottom"
        android:layout_marginEnd="@dimen/ntp_customization_bottom_sheet_layout_padding_bottom"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/drag_handle_bar"
        android:accessibilityHeading="true" />

    <ImageView
        android:id="@+id/back_button"
        android:layout_height="@dimen/ntp_customization_back_button_clickable_size"
        android:layout_width="@dimen/ntp_customization_back_button_clickable_size"
        android:padding="@dimen/ntp_customization_back_button_padding"
        android:layout_marginStart="@dimen/ntp_customization_back_button_margin_start"
        android:src="@drawable/btn_back"
        app:tint="@macro/default_icon_color"
        android:contentDescription="@string/back"
        app:layout_constraintTop_toTopOf="@id/bottom_sheet_title"
        app:layout_constraintBottom_toBottomOf="@id/bottom_sheet_title"
        app:layout_constraintStart_toStartOf="parent" />

    <org.chromium.components.browser_ui.widget.MaterialSwitchWithText
        android:id="@+id/mvt_switch_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/ntp_customization_bottom_sheet_layout_padding_bottom"
        android:layout_marginHorizontal="@dimen/ntp_customization_bottom_sheet_layout_padding_bottom"
        android:paddingHorizontal="@dimen/ntp_customization_edit_icon_margin"
        app:layout_constraintTop_toBottomOf="@id/bottom_sheet_title"
        app:layout_constraintStart_toStartOf="parent"
        android:background="@drawable/ntp_customization_bottom_sheet_list_item_background_single"
        tools:baselinealigned="false"
        android:text="@string/text_on" />

</androidx.constraintlayout.widget.ConstraintLayout>

</ScrollView>