<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    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:id="@+id/recent_call_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">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/recent_call_holder"
        android:layout_width="match_parent"
        android:layout_height="@dimen/contact_item_with_number_height"
        android:paddingLeft="@dimen/activity_margin"
        android:paddingRight="@dimen/activity_margin">

        <TextView
            android:id="@+id/recent_call_name"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:ellipsize="end"
            android:gravity="center_vertical"
            android:maxLines="1"
            android:paddingRight="@dimen/activity_margin"
            android:textSize="@dimen/big_text_size"
            app:layout_constraintBottom_toTopOf="@+id/recent_call_number"
            app:layout_constraintEnd_toStartOf="@+id/recent_call_date_time"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="John Doe"/>

        <TextView
            android:id="@+id/recent_call_number"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_below="@+id/recent_call_name"
            android:maxLines="1"
            android:paddingBottom="@dimen/tiny_margin"
            android:textSize="@dimen/bigger_text_size"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@+id/recent_call_date_time"
            app:layout_constraintStart_toStartOf="parent"
            tools:text="0123 456 789"/>

        <TextView
            android:id="@+id/recent_call_date_time"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:maxLines="1"
            android:textSize="@dimen/normal_text_size"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteY="0dp"
            tools:text="Yesterday, 17:00"/>

    </androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
