<?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/. -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="horizontal"
    android:padding="16dp">

    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/add_on_icon"
        style="@style/Mozac.Widgets.Favicon"
        tools:ignore="RequiredSize"
        android:importantForAccessibility="no"
        app:srcCompat="@drawable/mozac_ic_extensions"
        app:tint="?android:attr/textColorPrimary" />

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/add_on_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toStartOf="@+id/add_on_remove_button"
            android:ellipsize="end"
            android:maxLines="1"
            android:textSize="18sp"
            tools:text="uBlock Origin" />

        <androidx.appcompat.widget.AppCompatImageButton
            android:id="@+id/add_on_remove_button"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:background="?attr/selectableItemBackgroundBorderless"
            android:contentDescription="@string/mozac_feature_addons_remove"
            app:tint="?android:attr/textColorPrimary"
            app:srcCompat="@drawable/mozac_ic_delete" />
    </RelativeLayout>
</LinearLayout>
