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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -