<?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.
-->
<org.chromium.chrome.browser.firstrun.SafetyPromoFirstRunView
    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/safety_promo_fre_scroll_view"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_alignParentTop="true"
      android:layout_above="@id/fre_continue_button"
      android:fillViewport="true"
      android:scrollIndicators="bottom">

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

      <Space
          android:id="@+id/fre_space_above_logo"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="3" />

      <!-- Center Chrome Logo Placeholder -->
      <ImageView
          android:id="@+id/fre_icon"
          android:layout_width="@dimen/fre_illustration_size"
          android:layout_height="@dimen/fre_illustration_size"
          android:layout_gravity="center"
          android:layout_marginTop="@dimen/fre_spacing"
          android:layout_marginBottom=
              "@dimen/fre_illustration_to_content_margin"
          android:scaleType="fitCenter"
          android:adjustViewBounds="true"
          android:src="@drawable/fre_product_logo"
          android:importantForAccessibility="no" />

      <org.chromium.ui.widget.TextViewWithLeading
          android:id="@+id/title"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:paddingHorizontal="@dimen/fre_spacing"
          android:text="@string/safety_fre_promo_title"
          android:textAppearance=
              "@style/TextAppearance.HeadlineLargeThick.Primary" />

      <org.chromium.ui.widget.TextViewWithLeading
          android:id="@+id/subtitle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:paddingHorizontal="@dimen/fre_spacing"
          android:paddingTop="@dimen/fre_subtitle_top_padding"
          android:layout_marginBottom="@dimen/fre_spacing"
          android:text="@string/safety_fre_promo_description"
          android:textAppearance=
              "@style/TextAppearance.TextMedium.Secondary" />

      <Space
          android:id="@+id/fre_space_between_header_and_bottom_button"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="5" />
    </LinearLayout>
  </ScrollView>

  <org.chromium.ui.widget.ButtonCompat
      android:id="@+id/fre_continue_button"
      style="@style/FilledButton"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_marginBottom="@dimen/fre_spacing"
      android:layout_marginHorizontal="@dimen/fre_spacing"
      android:text="@string/safety_fre_promo_start_browsing_button" />
</org.chromium.chrome.browser.firstrun.SafetyPromoFirstRunView>
