<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical">

    <TextView
        android:id="@+id/cancel_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/font_blue"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true"
        android:layout_marginEnd="16dp"
        android:visibility="gone"
        tools:visibility="visible"
        android:text="@string/cancel"
        android:textSize="16sp" />

    <LinearLayout
        android:id="@+id/search_bar"
        android:focusable="true"
        android:layout_toStartOf="@+id/cancel_button"
        android:focusableInTouchMode="true"
        android:layout_marginTop="10dp"
        android:layout_marginBottom="10dp"
        android:layout_width="match_parent"
        android:layout_height="36dp"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="16dp"
        android:background="@drawable/contact_minimalist_search_bar_shape"
        android:orientation="horizontal">

        <ImageView
            android:layout_marginStart="8dp"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_gravity="center"
            android:scaleType="fitCenter"
            android:src="@drawable/contact_minimalist_search_icon" />

        <EditText
            android:id="@+id/edt_search"
            android:layout_width="0dp"
            android:layout_height="28dp"
            android:layout_gravity="center"
            android:layout_weight="1"
            android:layout_marginLeft="10dp"
            android:background="@null"
            android:imeOptions="actionSearch"
            android:textCursorDrawable="@drawable/contact_minimalist_cursor_shape"
            android:hint="@string/contact_search"
            android:textColorHint="#8E8E93"
            android:lines="1"
            android:textSize="16sp"
            android:singleLine="true" />

        <ImageView
            android:id="@+id/imgv_delete"
            android:layout_width="13.82dp"
            android:layout_height="13.82dp"
            android:layout_gravity="center"
            android:scaleType="centerInside"
            android:layout_marginEnd="8dp"
            android:src="@drawable/core_delete_icon"
            tools:visibility="visible"
            android:visibility="gone" />
    </LinearLayout>
</RelativeLayout>