<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<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="wrap_content"
    android:layout_marginBottom="12dp"
    android:background="#FF0250BB">

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:adjustViewBounds="true"
        android:importantForAccessibility="no"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/ic_etp_artwork" />

    <TextView
        android:id="@android:id/title"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:paddingTop="20dp"
        android:ellipsize="none"
        android:letterSpacing="0.05"
        android:scrollHorizontally="false"
        android:singleLine="false"
        android:text="@string/preference_enhanced_tracking_protection_explanation_title"
        android:textAppearance="@style/Header16TextStyle"
        android:textColor="@color/primary_text_dark_theme"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintEnd_toStartOf="@id/guideline"
        app:layout_constraintStart_toStartOf="parent" />

    <TextView
        android:id="@android:id/summary"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:paddingTop="12dp"
        android:paddingBottom="12dp"
        android:ellipsize="none"
        android:scrollHorizontally="false"
        android:text="@string/preference_enhanced_tracking_protection_explanation"
        android:textColor="@color/primary_text_dark_theme"
        android:textSize="14sp"
        app:layout_constraintBottom_toTopOf="@id/learn_more"
        app:layout_constraintEnd_toStartOf="@id/guideline"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="@android:id/title"
        app:layout_constraintTop_toBottomOf="@android:id/title" />

    <TextView
        android:id="@+id/learn_more"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingBottom="12dp"
        android:ellipsize="none"
        android:text="@string/preference_enhanced_tracking_protection_explanation_learn_more"
        android:textColor="@color/primary_text_dark_theme"
        android:textSize="14sp"
        app:layout_constraintEnd_toStartOf="@id/guideline"
        app:layout_constraintHorizontal_bias="0.0"
        app:layout_constraintStart_toStartOf="@android:id/title"
        app:layout_constraintTop_toBottomOf="@android:id/summary"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <ImageView
        android:layout_width="8dp"
        android:layout_height="0dp"
        android:layout_marginStart="12dp"
        android:paddingBottom="12dp"
        android:importantForAccessibility="no"
        android:tint="@color/primary_text_dark_theme"
        app:layout_constraintBottom_toBottomOf="@id/learn_more"
        app:layout_constraintStart_toEndOf="@id/learn_more"
        app:layout_constraintTop_toTopOf="@id/learn_more"
        app:srcCompat="@drawable/ic_arrowhead_right" />

    <androidx.constraintlayout.widget.Guideline
        android:id="@+id/guideline"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        app:layout_constraintGuide_percent="0.5" />
</androidx.constraintlayout.widget.ConstraintLayout>
