
Previously, it was using the native android.widget.SearchView. Now it uses the widget from appcompat. For good measure, I also made it so that the search button is always in the action bar, rather than being hidden behind a menu sometimes.
16 lines
603 B
XML
16 lines
603 B
XML
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" >
|
|
|
|
<item
|
|
android:id="@+id/action_search"
|
|
app:actionViewClass="android.support.v7.widget.SearchView"
|
|
app:showAsAction="collapseActionView|always"
|
|
android:icon="@android:drawable/ic_menu_search"
|
|
android:title="@string/menu_search"/>
|
|
<item
|
|
android:id="@+id/action_settings"
|
|
android:icon="@android:drawable/ic_menu_preferences"
|
|
android:title="@string/menu_preferences"
|
|
app:showAsAction="never"/>
|
|
|
|
</menu> |