<?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/white" />
|
|
<LinearLayout
|
android:id="@+id/ll_category_search"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_gravity="center"
|
android:background="@color/white"
|
android:gravity="center"
|
android:orientation="horizontal">
|
|
<FrameLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="15dp"
|
android:layout_marginRight="15dp"
|
android:layout_weight="1">
|
|
<AutoCompleteTextView
|
android:id="@+id/et_search"
|
android:layout_width="match_parent"
|
android:layout_height="35dp"
|
android:layout_gravity="center_vertical"
|
android:background="@drawable/shape_search_order"
|
android:completionThreshold="1"
|
android:hint=" 输入订单号或商品关键词"
|
android:imeOptions="actionSearch"
|
android:maxLines="1"
|
android:paddingLeft="45dp"
|
android:paddingRight="5dp"
|
android:singleLine="true"
|
android:textColor="#A1A1A1"
|
android:textCursorDrawable="@drawable/shape_input_cursor"
|
android:textSize="14sp" />
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="20dp"
|
android:src="@drawable/icon_search_gray" />
|
</FrameLayout>
|
|
<TextView
|
android:id="@+id/tv_cancel"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginRight="15dp"
|
android:padding="5dp"
|
android:text="取消"
|
android:textColor="@color/black2"
|
android:textSize="15sp" />
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="4dp"
|
android:background="#dddddd"></View>
|
|
<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:layout_marginTop="10dp"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="16dp"
|
android:layout_marginRight="16dp"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="历史搜索"
|
android:textColor="@color/search_title_text_color" />
|
|
<TextView
|
android:id="@+id/tv_clear_history"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="8dp"
|
android:layout_marginTop="1dp"
|
android:layout_marginRight="4dp"
|
android:background="@color/white"
|
android:gravity="right"
|
android:paddingLeft="5dp"
|
android:paddingTop="5dp"
|
android:paddingBottom="5dp"
|
android:text="清空" />
|
</LinearLayout>
|
|
|
<com.tejia.lijin.app.util.FlowLayout
|
android:id="@+id/fl_search_history"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="8dp"
|
android:layout_marginRight="8dp"></com.tejia.lijin.app.util.FlowLayout>
|
|
</LinearLayout>
|
</ScrollView>
|
|
<LinearLayout
|
android:id="@+id/ll_no_data"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:visibility="gone">
|
|
<ImageView
|
android:id="@+id/iv_no_data"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@drawable/ic_no_data" />
|
|
<TextView
|
android:id="@+id/tv_no_data_hint"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="暂无数据哟~~"
|
android:textColor="@color/text_black_1"
|
android:textSize="15sp" />
|
</LinearLayout>
|
</LinearLayout>
|