<?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"
    xmlns:tools="http://schemas.android.com/tools"
    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_alignBottom="@+id/item_layout"
        android:layout_alignTop="@+id/item_layout"
        android:background="#0088ff"
        android:gravity="center"
        android:includeFontPadding="false"
        android:paddingHorizontal="12dp"
        android:textColor="@android:color/white"
        android:textSize="20sp"
        tools:text="item_left" />

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

    <!-- item view has contents and divider -->
    <FrameLayout
        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="vertical">

        <LinearLayout
            android:id="@+id/llColumn"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="1dp"
            android:baselineAligned="false"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            android:paddingHorizontal="12dp"
            android:paddingVertical="3dp"
            tools:background="#ff0">

            <!-- minHeight の代わりにViewで賄う -->
            <View
                android:layout_width="0dp"
                android:layout_height="48dp" />

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/tvAccess"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="start|center_vertical"
                    android:includeFontPadding="false"
                    android:padding="2dp"
                    android:textColor="?attr/colorColumnListItemText"
                    android:textSize="14sp"
                    tools:text="user@acct" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:baselineAligned="false"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:id="@+id/ivColumnIcon"
                        android:layout_width="32dp"
                        android:layout_height="32dp"
                        android:layout_marginEnd="4dp"
                        android:importantForAccessibility="no"
                        app:tint="?attr/colorTextContent"
                        tools:src="@drawable/ic_face" />

                    <TextView
                        android:id="@+id/tvColumnName"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="start|center_vertical"
                        android:includeFontPadding="false"
                        android:padding="2dp"
                        android:textSize="18sp"
                        tools:text="name 名前 " />

                </LinearLayout>

            </LinearLayout>

            <ImageView
                android:id="@+id/ivSelected"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="4dp"
                android:contentDescription="@string/last_selection"
                android:src="@drawable/ic_eye"
                />

            <ImageView
                android:id="@+id/ivDragHandle"
                android:layout_width="48dp"
                android:layout_height="match_parent"
                android:layout_marginStart="8dp"
                android:background="?attr/colorColumnListDragHandleBackground"
                android:contentDescription="@string/drag_handle"
                android:scaleType="center"
                android:src="@drawable/ic_order"
                app:tint="?attr/colorTextContent" />
        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_gravity="bottom"
            android:background="?attr/colorSettingDivider" />
    </FrameLayout>
</com.woxthebox.draglistview.swipe.ListSwipeItem>
