Search Box on Home Screen

自作多情 提交于 2019-12-25 04:49:05

问题


I have used SearchManager and it provides search key only when app is launched. Is there a way to put a text box on the home screen/wallpaper and invoke activity when user presses enter?


回答1:


You can use widgets on the home screen, which you can have contain a textView and you can use an intent to launch an acticity you want on the press of enter - or any other event.



来源:https://stackoverflow.com/questions/3375615/search-box-on-home-screen

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