Example #1
0
  protected void makeMenu(Menu menu, int instance) {

    if (instance == Menu.INSTANCE_CONTEXT_SELECTION) {
      return;
    }

    if (instance == Menu.INSTANCE_DEFAULT) {
      // Menu items to show only in full menu
    }

    if (instance == Menu.INSTANCE_CONTEXT) {
      // Menu items to show only in short menu
    }

    if (instance == Menu.INSTANCE_DEFAULT || instance == Menu.INSTANCE_CONTEXT) {
      fillMenuOptions(menu, instance);
    }
    pushMiniMenu = false; // reset the variable to false.

    if (instance != Menu.INSTANCE_CONTEXT) super.makeMenu(menu, instance);
  }
Example #2
0
 // Screen interface
 protected void sublayout(int w, int h) {
   checkOrientationChanged(w, h);
   super.sublayout(w, h);
 }