<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<merge 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:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:id="@+id/search_loupe"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/search_box_view_margin_end"
        android:layout_gravity="center_vertical"
        android:src="@drawable/ic_search_24dp"
        android:importantForAccessibility="no"
        app:tint="@color/default_icon_color_tint_list" />

    <!-- Inlined standalone search text elements to avoid relying on Action Bar's search_toolbar.xml -->
    <EditText
        tools:ignore="Autofill,LabelFor"
        android:id="@+id/search_text"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:background="@null"
        android:imeOptions="flagNoExtractUi|actionSearch"
        android:inputType="text"
        android:singleLine="true"
        android:textAppearance="@style/TextAppearance.TextLarge.Primary"
        android:textColorHint="@macro/search_box_hint"/>

    <org.chromium.ui.widget.ChromeImageButton
        android:id="@+id/clear_text_button"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:paddingHorizontal="@dimen/clear_text_button_horizontal_padding"
        android:src="@drawable/btn_delete_24dp"
        android:background="@drawable/search_box_icon_background"
        android:scaleType="center"
        android:contentDescription="@string/accessibility_toolbar_btn_delete_url"
        android:visibility="gone"
        app:tint="@color/default_icon_color_tint_list" />
</merge>
