android NavigationView submenus aren't added if there are some items -


well, liked idea of navigationview, had bad experience programmatically adding menu items & submenus

protected void inflatemenu(menu menu){     menu.addsubmenu(1, 2, 0, "heading");     menu.add(main_group_id, 0, 0, "something 2");     menu.add(main_group_id, 1, 0, "title");      menu.addsubmenu(1, 2, 0, "sub menu");     menu.add(1, 3, 0, "menu #1");  } 

sub menus isn't appearing on navigationview, if remain adding sub menus without items, appeared on screen, hence question, how solve this?

this fixed in v23.0.0 of support library don't forget remove workarounds update.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -