<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/status_bar_color"
    tools:context="com.tencent.qcloud.tim.uikit.modules.search.SearchMainActivity">

    <!-- search-->
        <LinearLayout
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:layout_marginTop="5dp"
            android:layout_width="match_parent"
            android:layout_height="35dp"
            android:layout_gravity="center"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:background="@drawable/shape_search"
            android:orientation="horizontal">
            <ImageView
                android:layout_marginLeft="3dp"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_gravity="center"
                android:scaleType="fitCenter"
                android:src="@drawable/imgv_search" />
            <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="@dimen/btn_margin_left"
                android:background="@null"
                android:imeOptions="actionSearch"
                android:hint="@string/search"
                android:lines="1"
                android:singleLine="true" />
            <ImageView
                android:layout_marginRight="3dp"
                android:id="@+id/imgv_delete"
                android:layout_width="25dp"
                android:layout_height="25dp"
                android:layout_gravity="center"
                android:scaleType="centerInside"
                android:src="@drawable/imgv_delete"
                android:visibility="gone" />
        </LinearLayout>

    <!-- 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/shape_search">
                <TextView
                    android:id="@+id/contact_title"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="4dp"
                    android:layout_alignParentLeft="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:paddingLeft="14.85dp"
                    android:paddingRight="14.85dp"
                    android:orientation="horizontal">

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

                    <TextView
                        android:id="@+id/more_contact_title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/btn_margin_left"
                        android:layout_toRightOf="@+id/search_icon_contact"
                        android:gravity="center|left"
                        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="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentEnd="true"
                        android:src="@drawable/arrow_right"
                        android:textSize="11.14sp"
                        android:gravity="center|right"
                        android:layout_alignParentRight="true" />

                </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/shape_search">
                <TextView
                    android:id="@+id/group_title"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="4dp"
                    android:layout_alignParentLeft="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:paddingLeft="14.85dp"
                    android:paddingRight="14.85dp"
                    android:orientation="horizontal">

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

                    <TextView
                        android:id="@+id/more_group_title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/btn_margin_left"
                        android:layout_toRightOf="@+id/search_icon_group"
                        android:gravity="center|left"
                        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="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentEnd="true"
                        android:src="@drawable/arrow_right"
                        android:textSize="11.14sp"
                        android:gravity="center|right"
                        android:layout_alignParentRight="true" />

                </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/shape_search">
                <TextView
                    android:id="@+id/conversation_title"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="4dp"
                    android:layout_alignParentLeft="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.tim.uikit.modules.search.view.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:paddingLeft="14.85dp"
                    android:paddingRight="14.85dp"
                    android:orientation="horizontal">

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

                    <TextView
                        android:id="@+id/more_conversation_title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/btn_margin_left"
                        android:layout_toRightOf="@+id/search_icon_conversation"
                        android:gravity="center|left"
                        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="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentEnd="true"
                        android:src="@drawable/arrow_right"
                        android:textSize="11.14sp"
                        android:gravity="center|right"
                        android:layout_alignParentRight="true" />

                </RelativeLayout>

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