<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical">


    <com.tencent.qcloud.tuikit.timcommon.component.TitleBarLayout
        android:id="@+id/add_friend_titlebar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/page_title_height" />

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

        <TextView
            android:id="@+id/search_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="#444444"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:layout_marginEnd="10dp"
            android:text="@string/contact_search"
            android:textSize="15.36sp" />

        <LinearLayout
            android:focusable="true"
            android:layout_toStartOf="@+id/search_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/contact_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:background="@drawable/core_search_icon" />
            <EditText
                android:id="@+id/search_edit"
                android:layout_width="0dp"
                android:layout_height="28dp"
                android:layout_gravity="center"
                android:layout_weight="1"
                android:layout_marginStart="10dp"
                android:background="@null"
                android:textAlignment="viewStart"
                android:imeOptions="actionSearch"
                android:hint="@string/hint_search_user_id"
                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>

    <RelativeLayout
        android:id="@+id/friend_detail_area"
        android:layout_width="match_parent"
        android:layout_height="@dimen/contact_profile_self_height"
        android:background="#FFFFFF"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:padding="@dimen/page_margin"
        android:visibility="gone"
        tools:visibility="visible">

        <com.tencent.qcloud.tuikit.timcommon.component.gatherimage.ShadeImageView
            android:id="@+id/friend_icon"
            android:layout_width="@dimen/contact_profile_face_size"
            android:layout_height="@dimen/contact_profile_face_size"
            android:layout_gravity="start"
            android:scaleType="centerCrop"
            android:layout_marginStart="@dimen/contact_profile_face_margin_left"
            android:layout_marginEnd="@dimen/contact_profile_face_margin_right"
            android:layout_marginTop="@dimen/contact_profile_face_margin_top" />

        <TextView
            android:id="@+id/friend_nick_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/friend_icon"
            android:layout_toEndOf="@id/friend_icon"
            android:gravity="center_vertical"
            android:textSize="@dimen/contact_profile_nick_name_text_size"
            tools:text="Lee" />

        <TextView
            android:id="@+id/friend_account_tag"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignStart="@id/friend_nick_name"
            android:layout_below="@id/friend_nick_name"
            android:layout_marginTop="@dimen/contact_profile_text_margin"
            android:gravity="center_vertical"
            android:textDirection="locale"
            android:textSize="@dimen/contact_profile_account_text_size"
            android:text="@string/contact_account_tag" />

        <TextView
            android:id="@+id/friend_account"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@+id/friend_account_tag"
            android:layout_toEndOf="@id/friend_account_tag"
            android:layout_below="@id/friend_nick_name"
            android:gravity="center_vertical"
            android:textColor="@color/font_blue"
            android:textSize="@dimen/contact_profile_account_text_size"
            tools:text="99618" />

        <TextView
            android:id="@+id/group_type_tag"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignStart="@id/friend_account_tag"
            android:layout_below="@id/friend_account_tag"
            android:layout_marginTop="@dimen/contact_profile_text_margin"
            android:gravity="center_vertical"
            android:textDirection="locale"
            android:textSize="@dimen/contact_profile_account_text_size"
            android:text="@string/contact_group_type_tag" />


        <TextView
            android:id="@+id/group_type"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toEndOf="@id/group_type_tag"
            android:layout_alignTop="@id/group_type_tag"
            android:gravity="center_vertical"
            android:textSize="@dimen/contact_profile_signature_text_size"
            tools:text="believe" />

    </RelativeLayout>

    <TextView
        android:id="@+id/id_label"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="15.36dp"
        android:gravity="center"
        android:textSize="13.44sp"
        android:textColor="#444444"
        tools:text="Self ID"/>


    <TextView
        android:id="@+id/not_found_tip"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="15.36dp"
        android:gravity="center"
        android:textSize="13.44sp"
        android:textColor="#444444"
        tools:text="Not exists"/>

</LinearLayout>
