I'm trying to implement search interface in actionbar like in Google Play Video App (https://play.google.com/store/apps/details?id=com.google.android.videos). I think it is SearchView widget but don't understand how do same customization: add up button inside it, set background, and expand the full width of actionbar
SearchView like Google Play Video App
8.2k views Asked by Dmitry At
3
There are 3 answers
0
On
Use a standalone Toolbar and set it with an elevation, then inflate your menu in it.
You can add this item to your menu:
<item android:id="@+id/menu_search"
android:title="@string/action_search"
android:icon="@drawable/abc_ic_search_api_mtrl_alpha"
pawesome:showAsAction="ifRoom|collapseActionView"
pawesome:actionViewClass="android.support.v7.widget.SearchView"/>
I'm using not bad library for this: https://github.com/MiguelCatalan/MaterialSearchView