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

    <!-- search-->
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center" >

        <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="10dp"
            android:text="@string/cancle"
            android:textSize="16sp" />

        <LinearLayout
            android:focusable="true"
            android:layout_toStartOf="@+id/cancel_button"
            android:focusableInTouchMode="true"
            android:layout_marginTop="5dp"
            android:layout_width="match_parent"
            android:layout_height="35dp"
            android:layout_gravity="center"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="5dp"
            android:background="@drawable/search_search_box_bg"
            android:orientation="horizontal">
            <ImageView
                android:layout_marginStart="5dp"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_gravity="center"
                android:scaleType="fitCenter"
                android:src="@drawable/core_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_marginStart="10dp"
                android:background="@null"
                android:imeOptions="actionSearch"
                android:textAlignment="viewStart"
                android:hint="@string/search"
                android:lines="1"
                android:textSize="16sp"
                android:singleLine="true" />
            <ImageView
                android:layout_marginEnd="3dp"
                android:id="@+id/imgv_delete"
                android:layout_width="25dp"
                android:layout_height="25dp"
                android:layout_gravity="center"
                android:scaleType="centerInside"
                android:src="@drawable/core_delete_icon"
                android:visibility="gone" />
        </LinearLayout>
    </RelativeLayout>

    <!-- ScrollView-->
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical" >

            <View
                android:id="@+id/view_blank_zero"
                android:layout_width="match_parent"
                android:layout_height="5dp"
                android:background="@color/status_bar_color" />


            <!-- contact_layout-->
            <RelativeLayout
                android:id="@+id/contact_layout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone"
                android:background="@drawable/search_search_box_bg">
                <TextView
                    android:id="@+id/contact_title"
                    android:layout_marginStart="20dp"
                    android:layout_marginEnd="20dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="4dp"
                    android:layout_alignParentStart="true"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/list_bottom_text_bg"
                    android:textSize="12.86sp"
                    android:text="@string/contact_subtitle" />
                <View
                    android:id="@+id/view_line_one"
                    android:layout_below="@+id/contact_title"
                    android:layout_marginTop="4dp"
                    android:layout_width="match_parent"
                    android:layout_height="0.3dp"
                    android:background="@color/split_lint_color" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/friend_rc_search"
                    android:layout_below="@+id/view_line_one"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"/>


                <!-- more_contact_layout-->
                <RelativeLayout
                    android:id="@+id/more_contact_layout"
                    android:layout_below="@+id/friend_rc_search"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/item_height"
                    android:background="#FFFFFF"
                    android:paddingTop="12dp"
                    android:paddingStart="14.85dp"
                    android:paddingEnd="14.85dp"
                    android:orientation="horizontal">

                    <ImageView
                        android:id="@+id/search_icon_contact"
                        android:layout_marginStart="3dp"
                        android:layout_width="20dp"
                        android:layout_height="20dp"
                        android:layout_gravity="center"
                        android:layout_alignParentStart="true"
                        android:scaleType="fitCenter"
                        android:src="@drawable/core_search_icon" />

                    <TextView
                        android:id="@+id/more_contact_title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/btn_margin_left"
                        android:layout_toEndOf="@+id/search_icon_contact"
                        android:gravity="center|start"
                        android:ellipsize="end"
                        android:singleLine="true"
                        android:textColor="@color/black_font_color"
                        android:text="@string/more_contact_label"
                        android:textSize="16.3sp" />

                    <ImageView
                        android:id="@+id/more_contact_arrow"
                        android:layout_width="16dp"
                        android:layout_height="16dp"
                        android:layout_alignParentEnd="true"
                        android:src="@drawable/common_arrow_right"
                        android:textSize="11.14sp"
                        android:gravity="center|end" />

                </RelativeLayout>

            </RelativeLayout>

            <View
                android:id="@+id/view_blank_one"
                android:layout_width="match_parent"
                android:layout_height="5dp"
                android:background="@color/status_bar_color" />


            <!-- group_layout-->
            <RelativeLayout
                android:id="@+id/group_layout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone"
                android:background="@drawable/search_search_box_bg">
                <TextView
                    android:id="@+id/group_title"
                    android:layout_marginStart="20dp"
                    android:layout_marginEnd="20dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="4dp"
                    android:layout_alignParentStart="true"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/list_bottom_text_bg"
                    android:textSize="12.86sp"
                    android:text="@string/group_subtitle"/>
                <View
                    android:id="@+id/view_line_two"
                    android:layout_below="@+id/group_title"
                    android:layout_marginTop="4dp"
                    android:layout_width="match_parent"
                    android:layout_height="0.3dp"
                    android:background="@color/split_lint_color" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/group_rc_search"
                    android:layout_below="@+id/view_line_two"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"/>

                <!-- more_contact_layout-->
                <RelativeLayout
                    android:id="@+id/more_group_layout"
                    android:layout_below="@+id/group_rc_search"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/item_height"
                    android:background="#FFFFFF"
                    android:paddingTop="12dp"
                    android:paddingStart="14.85dp"
                    android:paddingEnd="14.85dp"
                    android:orientation="horizontal">

                    <ImageView
                        android:id="@+id/search_icon_group"
                        android:layout_marginStart="3dp"
                        android:layout_width="20dp"
                        android:layout_height="20dp"
                        android:layout_gravity="center"
                        android:layout_alignParentStart="true"
                        android:scaleType="fitCenter"
                        android:src="@drawable/core_search_icon" />

                    <TextView
                        android:id="@+id/more_group_title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/btn_margin_left"
                        android:layout_toEndOf="@+id/search_icon_group"
                        android:gravity="center|start"
                        android:ellipsize="end"
                        android:singleLine="true"
                        android:textColor="@color/black_font_color"
                        android:text="@string/more_group_label"
                        android:textSize="16.3sp" />

                    <ImageView
                        android:id="@+id/more_group_arrow"
                        android:layout_width="16dp"
                        android:layout_height="16dp"
                        android:layout_alignParentEnd="true"
                        android:src="@drawable/common_arrow_right"
                        android:textSize="11.14sp"
                        android:gravity="center|end" />

                </RelativeLayout>

            </RelativeLayout>

            <View
                android:id="@+id/view_blank_two"
                android:layout_width="match_parent"
                android:layout_height="5dp"
                android:background="@color/status_bar_color" />


            <!-- conversation_layout-->
            <RelativeLayout
                android:id="@+id/conversation_layout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone"
                android:background="@drawable/search_search_box_bg">
                <TextView
                    android:id="@+id/conversation_title"
                    android:layout_marginStart="20dp"
                    android:layout_marginEnd="20dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="4dp"
                    android:layout_alignParentStart="true"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/list_bottom_text_bg"
                    android:textSize="12.86sp"
                    android:text="@string/chat_record" />
                <View
                    android:id="@+id/view_line_three"
                    android:layout_below="@+id/conversation_title"
                    android:layout_marginTop="4dp"
                    android:layout_width="match_parent"
                    android:layout_height="0.3dp"
                    android:background="@color/split_lint_color" />

                <com.tencent.qcloud.tuikit.tuisearch.classicui.widget.PageRecycleView
                    android:id="@+id/conversation_rc_search"
                    android:layout_below="@+id/view_line_three"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"/>

                <!-- more_contact_layout-->
                <RelativeLayout
                    android:id="@+id/more_conversation_layout"
                    android:layout_below="@+id/conversation_rc_search"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/item_height"
                    android:background="#FFFFFF"
                    android:paddingTop="12dp"
                    android:paddingStart="14.85dp"
                    android:paddingEnd="14.85dp"
                    android:orientation="horizontal">

                    <ImageView
                        android:id="@+id/search_icon_conversation"
                        android:layout_marginStart="3dp"
                        android:layout_width="20dp"
                        android:layout_height="20dp"
                        android:layout_gravity="center"
                        android:layout_alignParentStart="true"
                        android:scaleType="fitCenter"
                        android:src="@drawable/core_search_icon" />

                    <TextView
                        android:id="@+id/more_conversation_title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/btn_margin_left"
                        android:layout_toEndOf="@+id/search_icon_conversation"
                        android:gravity="center|start"
                        android:ellipsize="end"
                        android:singleLine="true"
                        android:textColor="@color/black_font_color"
                        android:text="@string/more_conversation_label"
                        android:textSize="16.3sp" />

                    <ImageView
                        android:id="@+id/more_conversation_arrow"
                        android:layout_width="16dp"
                        android:layout_height="16dp"
                        android:layout_alignParentEnd="true"
                        android:src="@drawable/common_arrow_right"
                        android:textSize="11.14sp"
                        android:gravity="center|end" />

                </RelativeLayout>

            </RelativeLayout>
        </LinearLayout>
    </ScrollView>
</LinearLayout>