So according to developer.android documents, this is how one can include a SearchView in ActionBar:
<?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" >
<item android:id="@+id/action_search"
android:title="@string/action_search"
android:icon="@drawable/ic_action_search"
yourapp:showAsAction="ifRoom|collapseActionView"
yourapp:actionViewClass="android.support.v7.widget.SearchView" />
</menu>
The official guide, have only covered the SearchView from the support library, and not the one from Android Framework.
However, I am certain that my users have Android 4+ devices, so I want to use SearchView without appending support library to my app.
What changes should I make to my ActionBar XML menu layout?
I could not find any other tutorial on SearchView without Support Library.