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

<LinearLayout
    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="wrap_content"
    android:orientation="vertical">

  <!-- TODO(crbug.com/40672235): Change to the exact style TextMessagePreference is using. -->
  <TextView
      android:id="@+id/title"
      style="@style/PreferenceTitle"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingStart="@dimen/homepage_preference_title_lateral_padding"
      android:paddingTop="@dimen/homepage_preference_title_vertical_padding"
      android:paddingEnd="@dimen/homepage_preference_title_lateral_padding"
      android:paddingBottom="@dimen/homepage_preference_title_vertical_padding"
      android:text="@string/options_homepage_edit_label" />

  <org.chromium.components.browser_ui.widget.RadioButtonWithDescriptionLayout
      android:id="@+id/radio_button_group"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:focusableInTouchMode="true">

    <org.chromium.components.browser_ui.widget.RadioButtonWithDescription
        android:id="@+id/radio_button_chrome_ntp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:primaryText="@string/options_homepage_chrome_homepage"
        app:backgroundStyle="none" />

    <org.chromium.components.browser_ui.widget.RadioButtonWithEditText
        android:id="@+id/radio_button_uri_edit"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="@string/options_homepage_edit_hint"
        android:inputType="textUri"
        app:backgroundStyle="none" />

  </org.chromium.components.browser_ui.widget.RadioButtonWithDescriptionLayout>


  <org.chromium.components.browser_ui.widget.text.TextViewWithCompoundDrawables
      android:id="@+id/managed_disclaimer_text"
      style="@style/ManagedDisclaimerView"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingStart="@dimen/homepage_radio_button_managed_lateral_padding"
      android:paddingEnd="@dimen/homepage_radio_button_managed_lateral_padding"
      android:drawablePadding="@dimen/homepage_managed_icon_padding"
      android:visibility="gone" />
</LinearLayout>