<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent">

    <ImageView
        android:id="@+id/extension_icon"
        android:layout_width="56dp"
        android:layout_height="56dp"
        android:layout_marginLeft="16dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="@id/extension_title"
        app:layout_constraintBottom_toBottomOf="@id/extension_pkg"
        android:src="@mipmap/ic_launcher"/>

    <TextView
        android:id="@+id/extension_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:layout_marginLeft="16dp"
        style="@style/TextAppearance.Regular.SubHeading"
        app:layout_constraintLeft_toRightOf="@id/extension_icon"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="Tachiyomi: Extension"/>

    <TextView
        android:id="@+id/extension_version"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="1"
        android:gravity="center"
        app:layout_constraintTop_toBottomOf="@id/extension_title"
        app:layout_constraintLeft_toLeftOf="@id/extension_title"
        tools:text="Version: 1.0.0" />

    <TextView
        android:id="@+id/extension_lang"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="1"
        android:gravity="center"
        app:layout_constraintTop_toBottomOf="@id/extension_version"
        app:layout_constraintLeft_toLeftOf="@id/extension_title"
        tools:text="Language: English" />

    <TextView
        android:id="@+id/extension_pkg"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginRight="16dp"
        android:singleLine="true"
        android:ellipsize="middle"
        app:layout_constraintTop_toBottomOf="@id/extension_lang"
        app:layout_constraintLeft_toLeftOf="@id/extension_title"
        app:layout_constraintRight_toRightOf="parent"
        tools:text="eu.kanade.tachiyomi.extension.en.myext"/>

    <Button
        android:id="@+id/extension_uninstall_button"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginEnd="16dp"
        android:layout_marginStart="16dp"
        android:layout_marginTop="16dp"
        android:text="@string/ext_uninstall"
        style="@style/Theme.Widget.Button.Colored"
        app:layout_constraintLeft_toLeftOf="@id/guideline"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@id/extension_pkg" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/extension_prefs_recycler"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginTop="16dp"
        android:clipToPadding="false"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@id/extension_uninstall_button"/>

    <eu.kanade.tachiyomi.widget.EmptyView
        android:id="@+id/extension_prefs_empty_view"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:visibility="gone"
        android:gravity="center"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@id/extension_uninstall_button"/>

    <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>