SearchView like Google Play Video App

8.2k views Asked by At

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

Play Video screenshot

3

There are 3 answers

0
Dmitry On BEST ANSWER

I'm using not bad library for this: https://github.com/MiguelCatalan/MaterialSearchView

0
Earwin delos Santos 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"/>
1
wrozwad On