<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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/item_recents_holder"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/selectableItemBackground"
    android:clickable="true"
    android:focusable="true"
    android:foreground="@drawable/selector"
    android:paddingTop="@dimen/medium_margin"
    android:paddingBottom="@dimen/medium_margin">

    <ImageView
        android:id="@+id/item_recents_image"
        android:layout_width="@dimen/normal_icon_size"
        android:layout_height="@dimen/normal_icon_size"
        android:layout_centerVertical="true"
        android:layout_marginStart="@dimen/normal_margin"
        android:layout_marginEnd="@dimen/small_margin"
        android:padding="@dimen/small_margin"
        android:src="@drawable/ic_person_vector"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/item_recents_name"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/small_margin"
        android:layout_marginEnd="@dimen/small_margin"
        android:ellipsize="end"
        android:maxLines="1"
        android:textAlignment="viewStart"
        android:textDirection="locale"
        android:textSize="@dimen/bigger_text_size"
        app:layout_constraintBottom_toTopOf="@id/item_recents_date_time"
        app:layout_constraintEnd_toStartOf="@+id/overflow_menu_icon"
        app:layout_constraintStart_toEndOf="@+id/item_recents_image"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_chainStyle="spread_inside"
        tools:text="John Doe" />

    <ImageView
        android:id="@+id/item_recents_sim_image"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginStart="@dimen/tiny_margin"
        android:alpha="0.6"
        android:padding="@dimen/tiny_margin"
        android:src="@drawable/ic_sim_vector"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="@+id/item_recents_date_time"
        app:layout_constraintDimensionRatio="1:1"
        app:layout_constraintStart_toEndOf="@+id/item_recents_image"
        app:layout_constraintTop_toTopOf="@id/item_recents_date_time"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/item_recents_sim_id"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:gravity="center"
        android:textColor="@color/md_grey_black"
        android:textSize="@dimen/small_text_size"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="@+id/item_recents_sim_image"
        app:layout_constraintEnd_toEndOf="@+id/item_recents_sim_image"
        app:layout_constraintStart_toStartOf="@+id/item_recents_sim_image"
        app:layout_constraintTop_toTopOf="@+id/item_recents_sim_image"
        tools:text="1"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/item_recents_type"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginStart="@dimen/tiny_margin"
        android:alpha="0.6"
        android:padding="@dimen/tiny_margin"
        android:src="@drawable/ic_incoming_call_vector"
        app:layout_constraintBottom_toBottomOf="@+id/item_recents_date_time"
        app:layout_constraintDimensionRatio="1:1"
        app:layout_constraintStart_toEndOf="@+id/item_recents_sim_image"
        app:layout_constraintTop_toTopOf="@+id/item_recents_date_time" />

    <TextView
        android:id="@+id/item_recents_date_time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/tiny_margin"
        android:alpha="0.6"
        android:maxLines="1"
        android:textSize="@dimen/normal_text_size"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toEndOf="@+id/item_recents_type"
        app:layout_constraintTop_toBottomOf="@id/item_recents_name"
        tools:text="18.11.2022" />

    <TextView
        android:id="@+id/item_recents_duration"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/item_recents_name"
        android:layout_marginEnd="@dimen/small_margin"
        android:alpha="0.6"
        android:gravity="end"
        android:textSize="@dimen/normal_text_size"
        app:layout_constraintBottom_toBottomOf="@id/item_recents_date_time"
        app:layout_constraintEnd_toStartOf="@+id/overflow_menu_icon"
        app:layout_constraintTop_toTopOf="@id/item_recents_date_time"
        tools:text="00:10" />

    <ImageView
        android:id="@+id/overflow_menu_icon"
        style="@style/OverflowMenuIconStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <View
        android:id="@+id/overflow_menu_anchor"
        style="@style/OverflowMenuAnchorStyle"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
