<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity">
<item
android:id="@+id/action_settings"
android:title="Settings"
android:orderInCategory="100"
app:showAsAction="never" />
<item android:id="@+id/action_search"
android:orderInCategory="200"
android:title="Search"
android:icon="@android:drawable/ic_search_category_default"
app:showAsAction="ifRoom" />
<item android:id="@+id/action_user"
android:orderInCategory="300"
android:title="User"
android:icon="@android:drawable/ic_dialog_info"
app:showAsAction="ifRoom" />
</menu>
I'm experimenting with android action bar and I'm confused how the settings and other actions are added to my action bar from the menu. How did android determine that the first item in my list is to be added the three dot menu?