<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="70dp"
    android:orientation="vertical"
    android:gravity="center_horizontal"
    android:padding="2dp"
    android:layout_margin="2dp"
    android:clickable="true"
    android:id="@+id/root">
    <ImageView
        android:id="@+id/thumb"
        android:layout_width="50dp"
        android:layout_height="match_parent"
        android:contentDescription="@string/cd_drag_drop"
        android:padding="12dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:src="@drawable/ic_dragdrop_white"
        android:background="@color/transparent"
        />

    <com.google.android.material.imageview.ShapeableImageView
        android:id="@+id/image"
        android:layout_width="75dp"
        android:layout_height="50dp"
        android:contentDescription="@string/cd_image_group"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toRightOf="@id/thumb"
        android:layout_marginLeft="10dp"
        android:scaleType="centerCrop"
        android:src="@drawable/xp_book" />

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        app:layout_constraintLeft_toRightOf="@id/image"
        app:layout_constraintRight_toLeftOf="@id/buttons"
        android:layout_marginLeft="10dp"
        android:gravity="center"
        android:orientation="vertical">
        <TextView
            android:id="@+id/text_sub_group"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp"
            android:maxLines="2"
            android:ellipsize="end"
            android:textSize="12dp"
            android:textColor="@color/white"
            android:textAlignment="textStart"
            android:text="News" />
        <TextView
            android:id="@+id/text_sub_group_meta"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp"
            android:maxLines="2"
            android:ellipsize="end"
            android:textSize="10dp"
            android:textColor="@color/gray_ac"
            android:textAlignment="textStart"
            android:text="News" />
    </LinearLayout>
    <LinearLayout
        android:id="@+id/buttons"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:orientation="horizontal">
        <ImageButton
            android:id="@+id/button_trash"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:contentDescription="@string/cd_button_delete"
            android:layout_marginRight="10dp"
            android:padding="10dp"
            android:scaleType="fitCenter"
            android:background="@color/transparent"
            app:tint="@color/pastel_red"
            android:src="@drawable/ic_trash"
            />
        <ImageButton
            android:id="@+id/button_settings"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:padding="10dp"
            android:scaleType="fitCenter"
            android:background="@color/transparent"
            android:src="@drawable/ic_settings"
            android:visibility="gone"
            />
    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
