<?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.
-->
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

  <ScrollView
      android:id="@+id/default_search_engine_fre_scroll_view"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      app:layout_constrainedHeight="true"
      android:fadeScrollbars="false"
      android:fillViewport="true"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintEnd_toEndOf="parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:orientation="vertical"
        android:paddingVertical="24dp">

      <TextView
          android:id="@+id/chooser_title"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:lineSpacingMultiplier="1.2"
          android:gravity="center"
          android:paddingHorizontal="24dp"
          android:text="@string/search_engine_dialog_title"
          android:textAppearance="@style/TextAppearance.Headline.Primary" />

      <org.chromium.components.browser_ui.widget.RadioButtonLayout
          android:id="@+id/default_search_engine_dialog_options"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="24dp"
          android:layout_marginHorizontal="24dp" />

      <TextView
          android:id="@+id/footer"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginHorizontal="24dp"
          android:layout_marginTop="16dp"
          android:gravity="center"
          android:text="@string/search_engine_dialog_footer"
          android:textAppearance="@style/TextAppearance.TextMedium.Secondary" />

      <org.chromium.ui.widget.ButtonCompat
          android:id="@+id/button_primary"
          style="@style/FilledButton"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginHorizontal="24dp"
          android:layout_marginTop="24dp"
          android:text="@string/search_engine_dialog_confirm_button_title" />

    </LinearLayout>
  </ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
