If I define the following elements for my action bar:
res/menu/action_menu.xml
:
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:title="label"/> <item android:title="label1"/> <item android:title="label2"/> <item android:title="label3"/> <item android:title="label4"/> </menu>
In my activity:
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.action_menu, menu); return true; }
In any case, to allow certain elements to move into the action overflow part ? and how to do it?
PS The action overflow part is the largest part of the action bar, which hides certain elements, such as a pop-up menu.
source share