<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/item_contact_frame"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/selectableItemBackground"
    android:clickable="true"
    android:focusable="true"
    android:foreground="@drawable/selector">

    <RelativeLayout
        android:id="@+id/item_contact_holder"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/min_row_height"
        android:paddingStart="@dimen/medium_margin"
        android:paddingTop="@dimen/medium_margin"
        android:paddingEnd="@dimen/tiny_margin"
        android:paddingBottom="@dimen/medium_margin">

        <ImageView
            android:id="@+id/item_contact_image"
            android:layout_width="@dimen/normal_icon_size"
            android:layout_height="@dimen/normal_icon_size"
            android:layout_centerVertical="true"
            android:layout_marginStart="@dimen/small_margin"
            android:padding="@dimen/tiny_margin"
            android:src="@drawable/ic_person_vector" />

        <TextView
            android:id="@+id/item_contact_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toStartOf="@+id/expand_collapse_icon"
            android:layout_toEndOf="@+id/item_contact_image"
            android:ellipsize="end"
            android:gravity="center_vertical"
            android:maxLines="1"
            android:paddingStart="@dimen/medium_margin"
            android:paddingEnd="@dimen/activity_margin"
            android:textSize="@dimen/bigger_text_size"
            tools:text="John Doe" />

        <ImageView
            android:id="@+id/expand_collapse_icon"
            android:layout_width="@dimen/normal_icon_size"
            android:layout_height="@dimen/normal_icon_size"
            android:layout_alignParentEnd="true"
            android:padding="@dimen/normal_margin"
            android:src="@drawable/ic_expand_down"
            android:visibility="visible" />

    </RelativeLayout>
</FrameLayout>
