Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to put an EditText/input field into a homescreen widget?

I want my user to input something on the homescreen, but every time I add an Edittext to the widget it breaks. I did a little google searching to find that they apparently are not supported in widgets. There is a Google Search widget with an input field on every android phone though, so I am wondering if there is any way to have one in my widget.

Thanks in advance

EDIT: I noticed that the Google search bar doesn't actually have an input, instead it just opens an activity on touch. But there are still other apps like FriendStream which have input parts of their widgets.

like image 473
NotACleverMan Avatar asked May 03 '11 10:05

NotACleverMan


1 Answers

You cannot use EditText into the Homescreen widget. The Google search widget is merely a drawable (selector drawable - pressed, focused and normal state) which launches an Activity.

like image 151
Vinayak Bevinakatti Avatar answered Nov 15 '22 18:11

Vinayak Bevinakatti