There is an active in the style of Holo. And you need to make a button to expand the menu at the top right (ActionBar).

It turns out that the menu buttons do not exist at all or as 3 separate menu buttons in a row that don’t even fit into activations (this is because of android: showAsAction = "always" , but I don’t know how to display it under another). The documentation says that the ActionBar button itself appears.

<menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/action_reco" android:orderInCategory="100" android:showAsAction="always" android:title="@string/reco"/> <item android:id="@+id/action_rewrite" android:orderInCategory="100" android:showAsAction="always" android:title="@string/rewrite"/> <item android:id="@+id/action_delete" android:orderInCategory="100" android:showAsAction="always" android:title="@string/dell"/> </menu> 

Activity:

 @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.blistviewer, menu); return true; } 

    1 answer 1

    Set the parameter android:showAsAction="never"

    In off the documentation about it is written.

    • Then there is no menu at all. - Ques
    • 2
      @Ques - It is there, but when you press the "menu" button. I recently [solved] [1] a similar problem [1]: hashcode.ru/questions/265007/… - Opalosolo
    • @ ua6xh, and how did you solve the problem? I need a menu in the form of those 3 points. - Ques
    • After updating the Gmail application on a smart, my menu was moved down by pressing the menu button, the tablet displays 3 points as before. - Opalosolo
    • @Ques, if the device has a hardware "menu" button, you should use the pop-up menu below, instead of the overflow menu . Read the guidelines and do not break the UX. - falstaf