Along with the Action Bar, Android 3.0 introduced the SearchView widget, which can be included as a menu item when creating a menu. This is now the recommended UI pattern to provide a consistent user experience.
The following screenshot shows the initial appearance of the Search icon in the Action Bar:
![](https://static.packt-cdn.com/products/9781788991216/graphics/assets/bd37bc6b-7747-4d27-abca-bccde619583d.png)
The following screenshot shows how the Search option expands when pressed:
![](https://static.packt-cdn.com/products/9781788991216/graphics/assets/d8e33142-60e2-4c0f-b107-de4e0c850759.png)
If you want to add Search functionality to your application, this recipe will walk you through the steps to set up your User Interface and properly configure the Search Manager API.