布局====================================================================
main_activity=============================================================
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <com.example.liushibuju.View.MySearchView android:id="@+id/mySearchView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1"></com.example.liushibuju.View.MySearchView> <TextView android:id="@+id/sousuo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="搜索" android:textSize="20sp" /> </LinearLayout> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="20px" android:text="热门搜索" android:textSize="36px" /> <com.example.liushibuju.View.MyFlowLayout android:id="@+id/flow_hot_search" android:layout_width="match_parent" android:layout_height="wrap_content"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#F00" android:text="电饭煲" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#F00" android:text="手机" /> </com.example.liushibuju.View.MyFlowLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="20px"> <TextView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="历史搜索" android:textSize="36px" /> </LinearLayout> <com.example.liushibuju.View.MyListView android:id="@+id/lv_search" android:layout_width="match_parent" android:layout_height="match_parent"> </com.example.liushibuju.View.MyListView> <Button android:id="@+id/iv_delete" android:layout_gravity="center" android:layout_marginTop="30dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="清初历史记录"/> </LinearLayout> </ScrollView>
searchview_layout================&#