Exemple #1
0
 @Override
 public boolean onCreateOptionsMenu(android.view.Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater blowUp = getMenuInflater();
   blowUp.inflate(R.menu.cool_menu, menu);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(0, INSERT_ID, 0, R.string.menu_insert);
   menu.add(0, UPDATE_ID, 0, R.string.menu_update);
   return true;
 }
Exemple #3
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    // This is our one standard application action -- inserting a
    // new record into the list.
    menu.add(0, MENU_ITEM_INSERT, 0, R.string.menu_insert)
        .setShortcut('3', 'a')
        .setIcon(android.R.drawable.ic_menu_add);

    // Generate any additional actions that can be performed on the
    // overall list.  In a normal install, there are no additional
    // actions found here, but this allows other applications to extend
    // our menu with their own actions.
    Intent intent = new Intent(null, getIntent().getData());
    intent.addCategory(Intent.CATEGORY_ALTERNATIVE);
    menu.addIntentOptions(
        Menu.CATEGORY_ALTERNATIVE,
        0,
        0,
        new ComponentName(this, RecordsList.class),
        null,
        intent,
        0,
        null);

    return true;
  }
Exemple #4
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(0, INSERT_ID, 0, R.string.menu_insert);
   menu.add(0, COUNTRY_VIEW_ID, 1, R.string.menu_country_view);
   return true;
 } // onCreateOptionsMenu
Exemple #5
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater mi = getMenuInflater();
   mi.inflate(R.menu.menulist, menu);
   return true;
 }
Exemple #6
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.options_menu, menu);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(android.view.Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(0, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session);
   menu.add(0, StkApp.MENU_ID_HELP, 2, R.string.help);
   menu.add(0, StkApp.MENU_ID_DEFAULT_ITEM, 3, R.string.help);
   return true;
 }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    MenuInflater mi = new MenuInflater(getApplication());
    mi.inflate(R.menu.main, menu);

    return true;
  }
Exemple #9
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    menu.add(0, 0, 0, "Add New Contact");
    menu.add(0, 1, 1, "Settings");
    return true;
  }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   // TODO Auto-generated method stub
   super.onCreateOptionsMenu(menu);
   MenuInflater blw = getMenuInflater();
   blw.inflate(R.menu.menu_layout, menu);
   return true;
 } // TODO Auto-generated method stub
  /** {@inheritDoc}. */
  @Override
  public final boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.privacy_list, menu);
    return true;
  }
Exemple #12
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(Menu.NONE, TRACK_MENU, Menu.NONE, R.string.sort_by_track);
   menu.add(Menu.NONE, ALBUM_MENU, Menu.NONE, R.string.sort_by_album);
   menu.add(Menu.NONE, ARTIST_MENU, Menu.NONE, R.string.sort_by_artist);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(0, START_SYNC_MENU_ID, 0, R.string.start_sync).setIcon(R.drawable.googlecontacts);
   menu.add(0, STORE_SYNC_MENU_ID, 0, R.string.store_birthdays).setIcon(R.drawable.ic_menu_save);
   menu.add(0, DELETEALL_MENU_ID, 0, R.string.deleteall).setIcon(R.drawable.ic_menu_delete);
   return true;
 }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    menu.add(0, GeatteListOthersActivity.MENU_GET_NEXT_PAGE, 0, R.string.menu_get_next_page)
        .setIcon(android.R.drawable.ic_menu_more);

    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    menu.add(Menu.NONE, MENU_DELETE, Menu.NONE, "Delete all");
    menu.add(Menu.NONE, MENU_DUMP, Menu.NONE, "Dump to log");
    return true;
  }
Exemple #16
0
 @Override
 public boolean onCreateOptionsMenu(android.view.Menu menu) {
   // TODO Auto-generated method stub
   super.onCreateOptionsMenu(menu);
   MenuInflater blowup = getMenuInflater();
   blowup.inflate(R.menu.hardikmenu, menu);
   return true;
 }
Exemple #17
0
  /**
   * Create our options menu
   *
   * @see android.app.Activity#onCreateOptionsMenu(android.view.Menu)
   */
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    getMenuInflater().inflate(R.menu.current_flight, menu);

    return true;
  }
Exemple #18
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   // Inflate the menu; this adds items to the action bar if it is present.
   super.onCreateOptionsMenu(menu);
   menu.add(0, INSERT_ID, 0, R.string.menu_insert);
   menu.add(0, DELETE_ID, 0, R.string.menu_delete);
   // getMenuInflater().inflate(R.menu.diary, menu);
   return true;
 }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    menu.add(1, INSERT_MENU_ITEM, 0, R.string.menu_insert).setIcon(android.R.drawable.ic_menu_add);
    menu.add(1, SYNC_OPTIONS_MENU_ITEM, 1, R.string.menu_sync_options)
        .setIcon(android.R.drawable.ic_menu_preferences);
    return true;
  }
Exemple #20
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(0, ACTIVITY_INSERT, 1, R.string.menu_insert);
   menu.add(0, FEATURE_LIST, 2, R.string.menu_feature);
   menu.add(0, ACTIVITY_SYNC_ALL, 3, R.string.menu_sync_all);
   menu.add(0, ACTIVITY_STOP_SERVICE, 4, R.string.menu_stop_service);
   menu.add(0, ACTIVITY_ABOUT, 5, R.string.menu_about);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.menu, menu);
   //		menu.add(0, INSERT_ID, 0, R.string.menu_insert);
   //		menu.add(0, ACERCADE_ID, 0, R.string.menu_acercade);
   //		menu.add(0, AYUDA_ID, 0, R.string.menu_ayuda);
   return true;
 }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    menu.add(0, MENU_ADD, 0, R.string.AdblockerWhiteListMenuAdd);
    menu.add(0, MENU_CLEAR, 0, R.string.AdblockerWhiteListMenuClear);
    menu.add(0, MENU_RESET_TO_DEFAULT, 0, R.string.AdblockerWhiteListMenuReset);

    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    menu.add(Menu.NONE, Globais.MENU_HOME, Menu.NONE, Globais.MENU_HOME_GLOBAIS);
    menu.add(Menu.NONE, Globais.MENU_PROFILE, Menu.NONE, Globais.MENU_PROFILE_GLOBAIS);
    menu.add(Menu.NONE, Globais.MENU_FEED, Menu.NONE, Globais.MENU_FEED_GLOBAIS);
    menu.add(Menu.NONE, Globais.MENU_PESQUISAR, Menu.NONE, Globais.MENU_PESQUISAR_GLOBAIS);
    menu.add(Menu.NONE, Globais.MENU_LOGOFF, Menu.NONE, Globais.MENU_LOGOFF_GLOBAIS);
    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    menu.add(0, MENU_ABOUT, 0, R.string.menu_about).setIcon(android.R.drawable.ic_menu_help);
    menu.add(0, MENU_NEW_SEARCH, 0, R.string.menu_new_search)
        .setIcon(android.R.drawable.ic_menu_search);
    menu.add(0, MENU_FEEDBACK, 0, R.string.menu_feedback).setIcon(android.R.drawable.ic_menu_send);

    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    MenuItem item;
    item = menu.add(0, MENU_ADD, 0, R.string.AdBlockerWhiteListActivity_Add);
    item.setIcon(R.drawable.add32);

    item = menu.add(0, MENU_CLEAR, 0, R.string.AdBlockerWhiteListActivity_Clear);
    item.setIcon(R.drawable.clear32);

    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    Collect.getInstance().getActivityLogger().logAction(this, "onCreateOptionsMenu", "show");
    super.onCreateOptionsMenu(menu);

    CompatibilityUtils.setShowAsAction(
        menu.add(0, MENU_PREFERENCES, 0, R.string.general_preferences)
            .setIcon(R.drawable.ic_menu_preferences),
        MenuItem.SHOW_AS_ACTION_NEVER);
    CompatibilityUtils.setShowAsAction(
        menu.add(0, MENU_SHOW_UNSENT, 1, R.string.change_view).setIcon(R.drawable.ic_menu_manage),
        MenuItem.SHOW_AS_ACTION_NEVER);
    return true;
  }
Exemple #27
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   menu.add(
       Menu.NONE,
       ParserType.ANDROID_SAX.ordinal(),
       ParserType.ANDROID_SAX.ordinal(),
       R.string.android_sax);
   menu.add(Menu.NONE, ParserType.SAX.ordinal(), ParserType.SAX.ordinal(), R.string.sax);
   menu.add(Menu.NONE, ParserType.DOM.ordinal(), ParserType.DOM.ordinal(), R.string.dom);
   menu.add(
       Menu.NONE, ParserType.XML_PULL.ordinal(), ParserType.XML_PULL.ordinal(), R.string.pull);
   return true;
 }
Exemple #28
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    MenuItem item;
    item = menu.add(0, UPDATE_ID, 1, R.string.menu_update);
    item.setIcon(android.R.drawable.ic_menu_set_as);

    // set settings menu item and icon
    item = menu.add(1, SETTINGS_ID, 2, R.string.menu_settings);
    item.setIcon(android.R.drawable.ic_menu_preferences);

    item = menu.add(0, HELP_ID, 3, R.string.menu_help);
    item.setIcon(android.R.drawable.ic_menu_help);
    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    MenuItem item;

    item = menu.add(0, MENU_REFRESH, 0, R.string.Main_RefreshMenu);
    item.setIcon(R.drawable.refresh32);

    item = menu.add(0, MENU_MARK_ALL_READ, 0, R.string.FeedHeadlinesListActivity_MarkAllRead);

    item = menu.add(0, MENU_MARK_ALL_UNREAD, 0, R.string.FeedHeadlinesListActivity_MarkAllUnread);

    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    // don't offer menus when creating shortcut
    if (makingShortcut) return true;

    // add host, ssh keys, about
    sortcolor = menu.add(R.string.list_menu_sortcolor);
    sortcolor.setIcon(android.R.drawable.ic_menu_share);
    sortcolor.setOnMenuItemClickListener(
        new OnMenuItemClickListener() {
          public boolean onMenuItemClick(MenuItem item) {
            sortedByColor = true;
            updateList();
            return true;
          }
        });

    sortlast = menu.add(R.string.list_menu_sortname);
    sortlast.setIcon(android.R.drawable.ic_menu_share);
    sortlast.setOnMenuItemClickListener(
        new OnMenuItemClickListener() {
          public boolean onMenuItemClick(MenuItem item) {
            sortedByColor = false;
            updateList();
            return true;
          }
        });

    MenuItem keys = menu.add(R.string.list_menu_pubkeys);
    keys.setIcon(android.R.drawable.ic_lock_lock);
    keys.setIntent(new Intent(HostListActivity.this, PubkeyListActivity.class));

    MenuItem colors = menu.add("Colors");
    colors.setIcon(android.R.drawable.ic_menu_slideshow);
    colors.setIntent(new Intent(HostListActivity.this, ColorsActivity.class));

    MenuItem settings = menu.add(R.string.list_menu_settings);
    settings.setIcon(android.R.drawable.ic_menu_preferences);
    settings.setIntent(new Intent(HostListActivity.this, SettingsActivity.class));

    MenuItem help = menu.add(R.string.title_help);
    help.setIcon(android.R.drawable.ic_menu_help);
    help.setIntent(new Intent(HostListActivity.this, HelpActivity.class));

    return true;
  }