<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white_bg">

    <ImageView
        android:id="@+id/back_btn"
        android:layout_width="35sp"
        android:layout_height="35sp"
        android:layout_marginHorizontal="15dp"
        android:layout_marginTop="15dp"
        android:contentDescription="@string/back_button"
        android:padding="5dp"
        android:paddingStart="-15dp"
        android:paddingEnd="0dp"
        android:src="@drawable/arrow_back" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="15dp"
        android:layout_marginTop="10dp"
        android:layout_marginBottom="5dp"
        android:fontFamily="@font/nunito_medium"
        android:text="@string/please_add_your_caregiver_contact_information"
        android:textAppearance="@style/TextAppearance.Material3.HeadlineMedium"
        android:textColor="@color/black" />

    <EditText
        android:id="@+id/search"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="15dp"
        android:background="@drawable/edit_text_bg"

        android:paddingVertical="15dp"
        android:paddingHorizontal="10dp"
        android:layout_marginTop="10dp"

        android:hint="@string/search_contact"
        android:textColor="@color/black"
        android:textColorHint="@android:color/darker_gray"

        android:fontFamily="@font/nunito_regular"

        android:drawableStart="@drawable/ic_search_outline"
        android:drawablePadding="10dp"

        android:autofillHints="name"
        android:inputType="textPersonName"

        android:imeOptions="actionDone"
        />

    <LinearLayout
        android:id="@+id/create_contact"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_gravity="center_horizontal"
        android:layout_marginVertical="5dp"
        android:gravity="center"
        android:padding="5dp"
        >

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_contact_outline"
            android:contentDescription="@string/please_add_your_caregiver_contact_information"
            />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/create_new_contact"
            android:fontFamily="@font/nunito_regular"
            android:textColor="@color/black"
            android:layout_marginStart="5dp"
            android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
            />

    </LinearLayout>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/contact_rv"
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:overScrollMode="never"
        tools:listitem="@layout/contact_view_holder"
        />

        <LinearLayout
            android:id="@+id/error_view"
            android:visibility="gone"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/_60sdp"
            android:gravity="center_horizontal"
            android:orientation="vertical">

            <ImageView
                android:layout_width="@dimen/_60sdp"
                android:layout_height="@dimen/_60sdp"
                android:contentDescription="@string/no_contacts_found"

                android:layout_marginBottom="@dimen/_5sdp"

                app:srcCompat="@drawable/ic_no_contacts"
                app:tint="@color/color_primary" />

            <TextView
                android:id="@+id/title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"

                tools:text="@string/no_contacts_found"
                android:fontFamily="@font/nunito_semibold"
                android:textColor="@color/black"
                android:textSize="@dimen/_18ssp"
                android:textAlignment="center"

                android:layout_marginHorizontal="@dimen/_5sdp"

                />

            <TextView
                android:id="@+id/sub_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"

                tools:text="@string/there_are_no_contacts_added_in_your_contact_directory_please_click_on_the_create_new_contact_button_above"
                android:fontFamily="@font/nunito_regular"
                android:textColor="@color/black"
                android:textSize="@dimen/_14ssp"
                android:textAlignment="center"

                android:layout_marginTop="@dimen/_5sdp"
                android:layout_marginHorizontal="@dimen/_15sdp"
                />

            <TextView
                android:visibility="gone"
                android:id="@+id/ask_permission"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"

                android:text="@string/continue_"
                android:fontFamily="@font/nunito_semibold"
                android:textColor="@color/black"
                android:textSize="@dimen/_16ssp"

                android:layout_marginTop="@dimen/_5sdp"

                />

        </LinearLayout>

</LinearLayout>