搜索后如何关闭SearchManager
在完成获取数据后,我如何尝试在 Android 应用程序中关闭 SearchManager
,我该怎么做?
现在我正在触摸列表视图以隐藏搜索栏和键盘。
http://www.ideasandroid.com/ android/sdk/docs/images/search/search-suggest-custom.png
how I am trying to dismiss the SearchManager
in an android application after I finish fetching data, how I can do that?
for now I am touching the list view to hide the search bar and the keyboard.
http://www.ideasandroid.com/android/sdk/docs/images/search/search-suggest-custom.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在加载结果后调用 stopSearch() 吗?
http://developer.android.com/reference/android /app/SearchManager.html#stopSearch()
Tried calling stopSearch() after you've loaded your results?
http://developer.android.com/reference/android/app/SearchManager.html#stopSearch()