搜索框在主屏幕上 [英] Search Box on Home Screen
本文介绍了搜索框在主屏幕上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用SearchManager的,它提供了只有在应用程序启动搜索键。有没有把主屏幕/墙纸一个文本框,并调用活动时,用户presses输入方式?
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?
推荐答案
您可以使用小工具的主屏幕,您可以对包含一个TextView,你可以使用意图在$ P $发动你想要一个acticity进入PSS - 或任何其他事件。
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.
这篇关于搜索框在主屏幕上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文