android - SubMenu showAsAction when added at runtime -


i'm adding submenu @ runtime , works great. have problem: how set showasaction="always" on runtime-added submenu? there no method achieve , if don't set can't find way have shown in action bar. helping

don't know if late or not, submenu has function called getitem() returns menuitem. can menuitem, , call setshowasaction() afterwards. hope helps!!!


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -