Android: Edittext acting as search engine

做~自己de王妃 提交于 2020-02-02 16:15:29

问题


Is there a way that my Edittext in my application act as a search engine like google or yahoo? Is there any tutorial that can help me?


回答1:


i think you can use SearchView, for your purpose

refer this link also Creating a Search Interface




回答2:


What are you trying to achieve ?, but you can directly gettext from edittext and search that text using google api.




回答3:


you can follow this tutorial Here if you search name automatically the matchings are highlight as like Google



来源:https://stackoverflow.com/questions/11407247/android-edittext-acting-as-search-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!