<?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" android:id="@+id/rootView" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:orientation="vertical"> <include layout="@layout/include_search_input_title" /> <View android:layout_width="match_parent" android:layout_height="@dimen/borderThickness" android:background="@color/hintColor" /> <!-- 流式布局显示查询记录Tag --> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="@dimen/dp_5"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginStart="@dimen/dp_10" android:text="搜索历史" android:textColor="@color/black" android:textSize="@dimen/sp_14" /> <ImageView android:id="@+id/deleteHistoryView" android:layout_width="@dimen/pngSize" android:layout_height="@dimen/pngSize" android:layout_alignParentEnd="true" android:padding="@dimen/dp_3" android:src="@drawable/ic_delete" /> </RelativeLayout> <com.zhy.view.flowlayout.TagFlowLayout android:id="@+id/tagFlowLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingHorizontal="@dimen/dp_10" app:max_select="1" /> </LinearLayout>