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

<!-- Layout used by CardPreference. -->

<org.chromium.components.browser_ui.widget.MaterialCardViewNoShadow
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    style="@style/PreferenceLayout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="@dimen/settings_item_margin">

  <LinearLayout
      android:id="@+id/preference_card"
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

    <ImageView
        android:id="@+id/icon"
        android:layout_width="0dp"
        android:layout_height="26dp"
        android:layout_weight="1"
        android:importantForAccessibility="no" />

  <LinearLayout
      android:orientation="vertical"
      android:layout_height="wrap_content"
      android:layout_width="0dp"
      android:layout_weight="6">

    <TextView
        android:id="@android:id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        style="@style/PreferenceTitle"/>

    <org.chromium.ui.widget.TextViewWithClickableSpans
        android:id="@+id/summary"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        style="@style/PreferenceSummary" />
  </LinearLayout>

    <ImageView
        android:id="@+id/close_icon"
        app:srcCompat="@drawable/btn_close"
        android:layout_width="0dp"
        android:layout_height="26dp"
        android:layout_weight="1"
        android:contentDescription="@string/close"
        android:tint="@macro/default_icon_color"
        android:visibility="gone"/>

  </LinearLayout>

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