Drawer MenuΒΆ

Menus are based on each module of android app. It contains different layout parameter to display different type of menu.

To generate different menu items with icon, tag color and badge we use different constructors.

@Override
public List<DrawerItem> drawerMenus(Context context) {
        List<DrawerItem> menu = new ArrayList<DrawerItem>();

        menu.add(new DrawerItem(TAG, "Sample Menus", true));
        menu.add(new DrawerItem(TAG, "Simple Menu", 8, 0, object("all")));
        menu.add(new DrawerItem(TAG, "Color Menu", 100, "#cc0000", object("all")));
        menu.add(new DrawerItem(TAG, "Icon Menu", 10, R.drawable.ic_action_about, object("")));
        return menu;
}
../../../_images/drawer_menu.png
comments powered by Disqus