Google Search Like Widget Example

I am looking for an example for Google Search, for example, a homepage widget where a user can enter keywords to search in my application. YouTube video here .

I followed the tutorial in the dev guide . However, it lists the available RemoteViews, and there is no EditView. In such a case, how can I provide an editable text box. I want to create a widget similar to the SearchManager user interface, but accessible as a widget on the main screen.

+4
source share
3 answers

EditText is not available in widgets. This is why there is no EditText in the search widget. It just looks like an EditText. When you click on the search widget, it launches another action using EditText.

+4
source

As above, EditText is not available for widgets. The video you pointed to is fake Android. This is not a real Android device and is made only for this video.

+1
source

A search widget is what you are looking for. There are two ways to implement it: 1) using SearchView (which behaves just like the EditText extension) and 2) using the search dialog box. I suppose you will need to use the first approach. There is a good helpful tutorial on the linked page to get started.

0
source

All Articles