<?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/itemContainer"
    android:layout_width="match_parent"
    android:layout_height="@dimen/object_settings_relations_item_height"
    android:background="@drawable/default_ripple">

    <ImageView
        android:id="@+id/ivActionDelete"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:paddingEnd="@dimen/dp_10"
        android:visibility="gone"
        android:src="@drawable/ic_relation_delete"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

    <include
        android:id="@+id/content"
        layout="@layout/item_document_relation_object"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/featuredRelationCheckbox"
        app:layout_constraintStart_toEndOf="@id/ivActionDelete"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginLeft="0dp" />

    <ImageView
        android:id="@+id/featuredRelationCheckbox"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_gravity="center_vertical"
        android:paddingStart="@dimen/dp_12"
        android:src="@drawable/ic_featured_relation_checkbox"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

    <View
        android:id="@+id/divider"
        android:layout_width="0dp"
        android:layout_height="0.5dp"
        android:layout_gravity="bottom"
        android:background="@color/shape_primary"
        app:layout_constraintBottom_toBottomOf="@+id/content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="@+id/content" />

</androidx.constraintlayout.widget.ConstraintLayout>