<?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:background="@color/white"
|
android:orientation="vertical">
|
|
<View
|
android:id="@+id/v_status_bar"
|
android:layout_width="match_parent"
|
android:layout_height="15dp"
|
android:background="@color/main_bg_color" />
|
|
<LinearLayout
|
android:id="@+id/ll_category_search"
|
android:layout_width="match_parent"
|
android:layout_height="48dp"
|
android:layout_gravity="center"
|
android:background="@color/white"
|
android:gravity="center"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/tv_search_back"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="8dp"
|
android:drawableLeft="@drawable/ic_back2"
|
android:drawablePadding="2dp"
|
android:padding="5dp" />
|
|
<FrameLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="8dp"
|
android:layout_marginRight="8dp"
|
android:layout_weight="1">
|
|
<AutoCompleteTextView
|
android:id="@+id/et_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:background="@drawable/shape_search"
|
android:completionThreshold="1"
|
android:imeOptions="actionSearch"
|
android:maxLines="1"
|
android:paddingBottom="7dp"
|
android:paddingLeft="35dp"
|
android:paddingRight="5dp"
|
android:paddingTop="7dp"
|
android:singleLine="true"
|
android:textSize="18sp" />
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="10dp"
|
android:src="@mipmap/ic_search" />
|
</FrameLayout>
|
|
<TextView
|
android:id="@+id/tv_search"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginRight="8dp"
|
android:padding="5dp"
|
android:text="搜索"
|
android:textColor="@color/black2" />
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@color/register_gray" />
|
|
<ScrollView
|
android:id="@+id/sv_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_margin="8dp"
|
android:text="热门搜索"
|
android:textColor="@color/gray2" />
|
|
<com.haicaojie.android.util.FlowLayout
|
android:id="@+id/fl_hot_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="8dp"
|
android:layout_marginRight="8dp"></com.haicaojie.android.util.FlowLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_margin="8dp"
|
android:layout_weight="1"
|
android:text="历史搜索"
|
android:textColor="@color/gray2" />
|
|
<TextView
|
android:id="@+id/tv_clear_history"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_margin="8dp"
|
android:layout_marginBottom="5dp"
|
android:layout_marginLeft="8dp"
|
android:layout_marginRight="8dp"
|
android:layout_marginTop="1dp"
|
android:background="@color/white"
|
android:gravity="right"
|
android:padding="5dp"
|
android:text="清空" />
|
</LinearLayout>
|
|
|
<com.lcjian.library.widget.MyListView
|
android:id="@+id/lv_search_history"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="8dp"
|
android:layout_marginRight="8dp"
|
android:background="@color/white"
|
android:divider="@color/white"
|
android:dividerHeight="6dp"></com.lcjian.library.widget.MyListView>
|
|
</LinearLayout>
|
</ScrollView>
|
|
<include layout="@layout/item_no_net" />
|
|
<include layout="@layout/item_error_net" />
|
|
<include layout="@layout/item_no_data" />
|
</LinearLayout>
|