1
.. OpenERP Mobile documentation master file, created by
2
sphinx-quickstart on Tue Mar 25 14:15:37 2014.
3
You can adapt this file completely to your liking, but it should at least
4
contain the root `toctree` directive.
9
Menus are based on each module of android app. It contains different layout parameter to display different type of menu.
11
To generate different menu items with icon, tag color and badge we use different constructors.
16
public List<DrawerItem> drawerMenus(Context context) {
17
List<DrawerItem> menu = new ArrayList<DrawerItem>();
19
menu.add(new DrawerItem(TAG, "Sample Menus", true));
20
menu.add(new DrawerItem(TAG, "Simple Menu", 8, 0, object("all")));
21
menu.add(new DrawerItem(TAG, "Color Menu", 100, "#cc0000", object("all")));
22
menu.add(new DrawerItem(TAG, "Icon Menu", 10, R.drawable.ic_action_about, object("")));
26
.. image:: images/drawer_menu.png