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
Post a Comment