Skip to content

Instantly share code, notes, and snippets.

@ckdevrel
Created July 26, 2015 19:35
Show Gist options
  • Save ckdevrel/1b90a5fa6b2047003a8e to your computer and use it in GitHub Desktop.
Save ckdevrel/1b90a5fa6b2047003a8e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:compat="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/search"
android:icon="@drawable/abc_ic_search_api_mtrl_alpha"
android:title="Search"
android:visible="true"
compat:actionViewClass="android.support.v7.widget.SearchView"
compat:showAsAction="ifRoom|collapseActionView" />
</menu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment