<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:orientation="horizontal">

    <ImageView
        android:id="@+id/image"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_gravity="center"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        tools:srcCompat="@drawable/bg_circle" />

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="?android:attr/listPreferredItemHeight"
        android:layout_weight="1"
        android:gravity="center_vertical"
        android:orientation="vertical">

        <TextView
            android:id="@+id/name"
            style="?android:attr/dropDownItemStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="marquee"
            android:singleLine="true"
            tools:text="Jan Kowalski" />

        <TextView
            android:id="@+id/type"
            style="?android:attr/dropDownItemStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="marquee"
            android:singleLine="true"
            android:textAppearance="@style/TextAppearance.AppCompat.Small"
            android:textSize="13sp"
            tools:text="Jan Kowalski" />
    </LinearLayout>

    <com.mikepenz.iconics.view.IconicsImageButton
        android:id="@+id/sendMessage"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_gravity="center"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:background="?selectableItemBackgroundBorderless"
        android:padding="4dp"
        android:visibility="gone"
        app:iiv_color="?android:textColorSecondary"
        app:iiv_icon="cmd-email-plus-outline"
        app:iiv_size="24dp"
        tools:visibility="visible" />

    <com.mikepenz.iconics.view.IconicsImageButton
        android:id="@+id/copy"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_gravity="center"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:background="?selectableItemBackgroundBorderless"
        android:padding="4dp"
        android:visibility="gone"
        app:iiv_color="?android:textColorSecondary"
        app:iiv_icon="cmd-clipboard-text-multiple-outline"
        app:iiv_size="24dp"
        tools:visibility="visible" />
</LinearLayout>
