android searchview 如何显示同一张图片
android searchview how show same image
<android.widget.SearchView
android:id="@+id/sv"
android:title="Search aaaa"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/widget_store_promotions_header_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
结果:
如何显示相同的搜索视图:
您必须在搜索视图中使用此设置xml
android:queryHint="your hint"
android:iconifiedByDefault="false"
通过使用 android:iconifiedByDefault="false"
搜索视图也会显示编辑文本
<android.widget.SearchView
android:id="@+id/sv"
android:title="Search aaaa"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/widget_store_promotions_header_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
结果:
如何显示相同的搜索视图:
您必须在搜索视图中使用此设置xml
android:queryHint="your hint"
android:iconifiedByDefault="false"
通过使用 android:iconifiedByDefault="false"
搜索视图也会显示编辑文本