Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>NOTE:</strong> With this suggestion, I am <strong>not</strong> recommending using ForceOverFlow to any reader. This is simply listing a possibility of making it work (forcing it to work rather). To each his own. Some may want it and like it too. Others may not.</p> <p>I am probably speculating, but perhaps, this may do it for you.</p> <p>You can think of this a <em>hack</em>, but I used it before to force the Overflow menu in one of my apps earlier and it works.</p> <pre><code>try { ViewConfiguration config = ViewConfiguration.get(MainPage.this); Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey"); if (menuKeyField != null) { menuKeyField.setAccessible(true); menuKeyField.setBoolean(config, false); } } catch (Exception e) { e.printStackTrace(); } </code></pre> <p>Also, the second link by <em>MisterSmith</em> has a solution of sorts with my answer in it. <em>Commonsware</em> has put down some thought about forcing the OverFlow menu here: <a href="https://stackoverflow.com/questions/12871850/how-to-control-use-of-overflow-menu-in-ics/12872537#12872537">How To Control use of OverFlow Menu in ICS</a></p> <p>EDIT: While typing out this suggestion, you added a comment. To respond to that, I would like to point out that <em>Jake Wharton</em> took out .ForceOverFlow themes. I haven't tried it with version <strong>4.2.0</strong>, but with a custom theme, it just might work. If you absolutely must use ForceOverFlow, you might have to use an older version. Read my answer here: <a href="https://stackoverflow.com/a/13180285/450534">https://stackoverflow.com/a/13180285/450534</a>. Something might just make it work.</p> <p>EDIT 2: As pointed out by the OP in a comment, the Demos Sample APK, in fact, does ForceOverFlow the action bar in <code>Action Modes</code>. I have a feeling, after checking the relevant Java files on github, that the answer to that lies perhaps in 3 Java files.</p> <ol> <li>The Activity <code>ActionModes</code> adds <code>menu items</code> in a very unconventional manner: <a href="https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/ActionModes.java" rel="nofollow noreferrer">https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/ActionModes.java</a> (Line 53)</li> <li>The <code>ActionMode</code> Java file in the ABS Library: <a href="https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/view/ActionMode.java" rel="nofollow noreferrer">https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/view/ActionMode.java</a></li> <li>The <code>MenuItem</code> Java file again part of the ABS Library: <a href="https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/view/MenuItem.java" rel="nofollow noreferrer">https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/view/MenuItem.java</a></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload