<?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:id="@+id/checklist_holder"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/selectableItemBackground"
    android:clickable="true"
    android:focusable="true"
    android:foreground="@drawable/selector"
    android:minHeight="@dimen/checklist_height"
    android:paddingStart="@dimen/normal_margin"
    android:paddingEnd="@dimen/small_margin">

    <org.fossify.commons.views.MyAppCompatCheckbox
        android:id="@+id/checklist_checkbox"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/tiny_margin"
        android:background="@null"
        android:clickable="false"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <org.fossify.commons.views.MyTextView
        android:id="@+id/checklist_title"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:textSize="@dimen/bigger_text_size"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/checklist_drag_handle"
        app:layout_constraintStart_toEndOf="@id/checklist_checkbox"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginEnd="@dimen/normal_margin"
        tools:text="Apples 🍎" />

    <ImageView
        android:id="@+id/checklist_drag_handle"
        android:layout_width="@dimen/checklist_image_size"
        android:layout_height="@dimen/checklist_image_size"
        android:contentDescription="@string/move"
        android:padding="@dimen/normal_margin"
        android:src="@drawable/ic_drag_handle_vector"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
