Android adding a submenu to a menuItem, where is addSubMenu()?
Sometimes Android weirdness is really amazing (and amusing..). I solved it this way: a) Define in XML a submenu placeholder like this: <item android:visible=”true” android:id=”@+id/m_area” android:titleCondensed=”Areas” android:title=”Areas” android:icon=”@drawable/restaur” android:enabled=”true”> <menu> <item android:id=”@+id/item1″ android:title=”Placeholder”></item> </menu> </item> b) Get sub menu item in OnCreateOptionsMenu, clear it and add my submenu items, like this: public boolean onCreateOptionsMenu(Menu menu) … Read more