我想要这样的东西->enter image description here..
所以,我真正想要的是,当用户在搜索视图中键入特定主题名称(如果存在)时,它应该能够提供建议,如果找到它应该打开该主题活动(就像Facebook,instagram,...等等搜索)..那些标题来自api(我已经在其他活动中成功显示)..像这样-> enter image description here] ..它的逻辑是什么???
所以我刚刚将searchview这样包含在xml中->
<SearchView
android:id="@+id/searchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:queryHint="Search Here"
android:iconifiedByDefault="false"
android:layout_alignParentTop="true"
android:background="@drawable/search_bar"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="20dp"
android:pointerIcon="crosshair"
android:theme="@style/Widget.AppCompat.SearchView"
android:focusedByDefault="true"
/>
需要帮助。。在此先感谢 ....
[请参考以下文档网址,可能会对您有所帮助