1

I want to add a search bar functionality top at the action bar like in Play Store app.

EditText should be expanded on click of the search button

How can I achieve this ?

Sorry if my question doesn't show any research effort, however i googled it & didn't find any result.

Thanks in advance

Vivek Warde
  • 1,936
  • 8
  • 47
  • 77

2 Answers2

4

Here what I found https://github.com/Quinny898/PersistentSearch. Voice recognition is also available.

maohieng
  • 1,646
  • 1
  • 19
  • 26
1

This functionality is called Action View. It allows you to embed widgets into the action bar, and the widgets will substitute the action button when you click it.

Here is the Google's tutorial on how to embed SearchView into an action bar: http://developer.android.com/guide/topics/search/search-dialog.html#UsingSearchWidget

Scadge
  • 9,380
  • 3
  • 30
  • 39