<?xml version="1.0" encoding="utf-8"?>
<com.woxthebox.draglistview.swipe.ListSwipeItem xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:leftViewId="@+id/item_left"
    app:rightViewId="@+id/item_right"
    app:swipeViewId="@+id/item_layout">

    <TextView
        android:id="@+id/item_left"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignTop="@+id/item_layout"
        android:layout_alignBottom="@+id/item_layout"
        android:background="#0088ff"
        android:gravity="center"
        android:text="@string/app_name"
        android:textColor="@android:color/white"
        android:textSize="20sp" />

    <TextView
        android:id="@+id/item_right"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignTop="@+id/item_layout"
        android:layout_alignBottom="@+id/item_layout"
        android:background="?attr/colorColumnListDeleteBackground"
        android:gravity="center_vertical"
        android:paddingStart="12dp"
        android:paddingEnd="12dp"
        android:text="@string/delete"
        android:textColor="?attr/colorColumnListDeleteText"
        android:textSize="20sp" />

    <LinearLayout
        android:id="@id/item_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/column_list_selector"
        android:gravity="center_vertical"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/ivDragHandle"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:background="?attr/colorColumnListDragHandleBackground"
            android:contentDescription="@string/drag_handle"
            android:scaleType="center"
            android:src="@drawable/ic_order"
            android:visibility="gone"
            app:tint="?attr/colorVectorDrawable" />

        <TextView
            android:id="@+id/tvName"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginEnd="4dp"
            android:layout_weight="1"
            android:gravity="center_vertical|start"
            android:minHeight="48dp"
            android:paddingStart="12dp"
            android:paddingEnd="12dp"
            android:textSize="20sp" />

        <ImageButton
            android:id="@+id/ivSpeech"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="4dp"
            android:contentDescription="@string/speech"
            android:src="@drawable/ic_comment"
            android:tint="?attr/colorVectorDrawable" />

        <ImageButton
            android:id="@+id/btnSound"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="4dp"
            android:contentDescription="@string/check_sound"
            android:src="@drawable/ic_volume_up"
            android:tint="?attr/colorVectorDrawable" />
    </LinearLayout>

</com.woxthebox.draglistview.swipe.ListSwipeItem>
