Note that there are some explanatory texts on larger screens.

plurals
  1. POStrange OptionsMenu display in 4.3
    primarykey
    data
    text
    <p>I have code that has worked fine since 1.6 suddenly not displaying properly after upgrade to 4.3.</p> <p>It looks like the system that paints the menu gets the wrong value for screen width.</p> <p>Any ideas the code is tested! I tried changing Themes I am out of ideas!</p> <p>It appears to affect only 4.x devices. All other devices are unaffected.</p> <p>In onCreate have the required:- </p> <pre><code>if (android.os.Build.VERSION.SDK_INT&gt;10) getActionBar(); </code></pre> <p>also </p> <pre><code> @Override public boolean onCreateOptionsMenu(Menu menu) { //super.onCreateOptionsMenu(menu); if (!app().day_change){ menu.add(0,0,0,"&lt;&lt;Day"); menu.add(0,1,0,"Day&gt;&gt;"); } menu.add(0,2,0,"Hot Sync"); menu.add(0,3,0,"Delete Week File"); menu.add(0,4,0,"Import Test Data File"); menu.add(0,5,0,"View Mod History"); menu.add(0,15,0,"View Changes to Data"); menu.add(0,6,0,"Select Bluetooth device"); menu.add(0,9,0,"View Auto Backup files"); menu.add(0,10,0,"Options"); //menu.add(0,7,0,"WIFI Print Test"); //menu.add(0,8,0,"Delnote Test"); return super.onCreateOptionsMenu(menu); } public boolean onPrepareOptionsMenu(Menu menu){ menu.clear(); if (!app().day_change){ menu.add(0,0,0,"&lt;&lt;Day"); menu.add(0,1,0,"Day&gt;&gt;"); } menu.add(0,2,0,"Hot Sync"); menu.add(0,3,0,"Delete Week File"); menu.add(0,4,0,"Import Test Data File"); menu.add(0,5,0,"View Mod History"); menu.add(0,15,0,"View Changes to Data"); menu.add(0,6,0,"Select Bluetooth device"); menu.add(0,9,0,"View Auto Backup files"); menu.add(0,10,0,"Options"); menu.add(0,11,0,"SMS Invoicing"); subMenu = menu.addSubMenu("Contacts"); subMenu.add(0, 12, 0, " Update"); subMenu.add(0, 13, 0, " Delete All z"); menu.add(0,14,0,"Email Steve Weekfile"); //menu.add(0,7,0,"WIFI Print Test"); //menu.add(0,8,0,"Delnote Test"); return super.onPrepareOptionsMenu(menu); } </code></pre> <p>Here's the view from a Nexus 7</p> <p><a href="http://www.milkroundsoftware.co.uk/device-2013-08-12-094853.png" rel="nofollow noreferrer">Option menu http://www.milkroundsoftware.co.uk/device-2013-08-12-094853.png</a></p> <p>Many Thanks Steve</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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