<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:yourapp="http://schemas.android.com/apk/res-auto"
    xmlns:ws="http://schemas.android.com/tools">
    <item android:id="@+id/action_search"
        android:title="@string/action_search"
        android:icon="@drawable/ic_search_white_24dp"
        yourapp:showAsAction="ifRoom|collapseActionView"
    <item
        android:id="@+id/legal"
        android:title="@string/open_source_licenses"
        ws:showAsAction="never" />
        yourapp:actionViewClass="android.support.v7.widget.SearchView" />
</menu>
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:yourapp="http://schemas.android.com/apk/res-auto"
    xmlns:ws="http://schemas.android.com/tools">
    <item android:id="@+id/action_search"
        android:title="@string/action_search"
        android:icon="@drawable/ic_search_white_24dp"
        yourapp:showAsAction="ifRoom|collapseActionView"
        yourapp:actionViewClass="android.support.v7.widget.SearchView" />
</menu>
Remove open source licenses menu options from the Map Activity
Remove open source licenses menu options from the Map Activity
