@Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   // TODO Auto-generated method stub
   super.onCreateContextMenu(menu, v, menuInfo);
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.edit_tracks_context_menu, menu);
 }
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   menu.add(0, DELETE_ID, 0, R.string.menu_delete);
   menu.add(0, EDIT_ID, 0, R.string.edit_note);
   menu.add(0, TEXT_ID, 0, R.string.send_text);
 }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.context_menu, menu);
  }
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   menu.setHeaderTitle("select action");
   menu.add(0, v.getId(), 0, "update");
   menu.add(0, v.getId(), 0, "delete");
 }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo info) {
    super.onCreateContextMenu(menu, v, info);

    boolean multi_data = handler.hasMultiSelectData();
    AdapterContextMenuInfo _info = (AdapterContextMenuInfo) info;
    selected_list_item = handler.getData(_info.position);

    if (flmg.isDirectory(selected_list_item)) {
      menu.setHeaderTitle("Folder operations");
      menu.add(0, D_MENU_DELETE, 0, "Delete Folder");
      menu.add(0, D_MENU_RENAME, 0, "Rename Folder");
      menu.add(0, D_MENU_COPY, 0, "Copy Folder");
      menu.add(0, D_MENU_ZIP, 0, "Zip Folder");
      menu.add(0, D_MENU_PASTE, 0, "Paste into folder").setEnabled(holding_file || multi_data);
      menu.add(0, D_MENU_UNZIP, 0, "Extract here").setEnabled(holding_zip);

    } else {
      menu.setHeaderTitle("File Operations");
      menu.add(0, F_MENU_DELETE, 0, "Delete File");
      menu.add(0, F_MENU_RENAME, 0, "Rename File");
      menu.add(0, F_MENU_COPY, 0, "Copy File");
      menu.add(0, F_MENU_ATTACH, 0, "Email File");
    }
  }
 /** creates the context menu for items when they get a long click */
 @Override
 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, view, menuInfo);
   menu.add(0, SET_STOP_OPTION, SET_STOP_OPTION, "Set alarm for this stop");
   menu.add(0, REMOVE_STOP_OPTION, REMOVE_STOP_OPTION, "Remove this stop");
   menu.add(0, CANCEL, CANCEL, "Cancel");
 }
 @Override
 public void onCreateContextMenu(
     final ContextMenu aMenu, final View aView, final ContextMenuInfo someMenuInfo) {
   super.onCreateContextMenu(aMenu, aView, someMenuInfo);
   final MenuInflater ourInflater = getMenuInflater();
   ourInflater.inflate(R.menu.bookmark_context, aMenu);
   aMenu.setHeaderTitle(TheApp.getResString(R.string.context_title_generic));
 }
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   // TODO Auto-generated method stub
   getMenuInflater().inflate(R.menu.context_history, menu);
   //		menu.add(0, 001, 0,  "刪除");
   menu.setHeaderTitle("要怎麼處理這筆項目?");
   super.onCreateContextMenu(menu, v, menuInfo);
 }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    menu.setHeaderTitle(cursor.getString(cursor.getColumnIndex(ClienteDbAdapter.C_COLUMNA_NOMBRE)));
    menu.add(Menu.NONE, C_VISUALIZAR, Menu.NONE, R.string.menu_visualizar);
    menu.add(Menu.NONE, C_EDITAR, Menu.NONE, R.string.menu_editar);
    menu.add(Menu.NONE, C_ELIMINAR, Menu.NONE, R.string.menu_eliminar);
  }
 /** {@inheritDoc} */
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.privacy_list_context, menu);
   mCurrPrivacyListName =
       mPrivacyListNames.get(((AdapterView.AdapterContextMenuInfo) menuInfo).position);
   menu.setHeaderTitle(mCurrPrivacyListName);
 }
Exemple #11
0
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuinfo) {

    super.onCreateContextMenu(menu, v, menuinfo);
    menu.add(Menu.NONE, PATH, Menu.NONE, "Main");
    menu.add(Menu.NONE, VIDEO, Menu.NONE, "Video");
    menu.add(Menu.NONE, SRT, Menu.NONE, "Srt");
    menu.add(Menu.NONE, CONTENTSRT, Menu.NONE, "Display Srt Content");
    menu.add(Menu.NONE, DELETESRT, Menu.NONE, "Delete Srt File");
  }
Exemple #12
0
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
   menu.add(0, 0, 0, "Delete"); // groupId, itemId, order, title
   menu.add(0, 1, 1, "Open");
   menu.add(0, 2, 2, "Email");
   menu.add(0, 3, 3, "Resend");
 }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {

    MenuInflater inflater = ((Activity) MyScreenplaysActivity.getContext()).getMenuInflater();
    inflater.inflate(R.menu.context_menu_clip_editor, menu);
    super.onCreateContextMenu(menu, v, menuInfo);
    // menu.getItem(mCurCheckPosition);
    // cambiar despois esto debe ser dinamico
    menu.setHeaderTitle(R.string.selected_item);
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {

    super.onCreateContextMenu(menu, v, menuInfo);

    AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
    menu.setHeaderTitle(((TextView) info.targetView).getText());

    menu.add(0, MENU_ID_RENAME, 0, R.string.gestures_rename);
    menu.add(0, MENU_ID_REMOVE, 0, R.string.gestures_delete);
  }
Exemple #15
0
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   menu.add(0, REPLY, 0, "Reply");
   menu.add(0, REPOST_TWEET, 0, "Retweet");
   menu.add(0, DIRECT_MESSAGE, 0, "Send message");
   menu.add(0, FAVOURITE, 0, "Favourite");
   AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
   Status s = TwitGear.timeLine.get(info.position);
   menu.add(0, VIEW_PROFILE, 0, "View profile " + s.getUser().getScreenName());
 }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    // Context menu for deleting a note
    AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
    AppNote note = listAdapter.getItem(info.position);
    menu.setHeaderTitle(note.toString());
    menu.add(0, DELETE_MENU_ITEM, 0, R.string.menu_delete)
        .setIcon(android.R.drawable.ic_menu_delete);
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    int position = ((AdapterContextMenuInfo) menuInfo).position;
    if (position != -1) {
      menu.setHeaderTitle(Controller.getInstance().getAdBlockWhiteList().get(position));
    }

    menu.add(0, MENU_DELETE, 0, R.string.AdBlockerWhiteListActivity_DeleteMenu);
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    // 打开方式...
    menu.add(0, R.string.open_with, 0, R.string.open_with);
    // 重命名
    menu.add(0, R.string.rename, 0, R.string.rename);
    // 删除
    menu.add(0, R.string.delete, 0, R.string.delete);
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;

    menu.setHeaderTitle("Item: " + getListView().getItemAtPosition(info.position));
    menu.add("Item 1");
    menu.add("Item 2");
    menu.add("Item 3");
    menu.add("Item 4");

    super.onCreateContextMenu(menu, v, menuInfo);
  }
  /* (non-Javadoc)
   * @see android.app.Activity#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)
   */
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { // :-)

    super.onCreateContextMenu(menu, v, menuInfo);
    getMenuInflater().inflate(R.menu.device_context_menu, menu);

    AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
    ListAdapter adapter = getListAdapter();
    SoftAPDetails item = (SoftAPDetails) adapter.getItem(info.position);

    if (!item.supportOnboarding) menu.removeItem(R.id.context_menu_onboarding);
  }
Exemple #21
0
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {

    super.onCreateContextMenu(menu, v, menuInfo);
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.mpd_playlistcnxmenu, menu);

    AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
    // arrayListId = info.position;

    title = (String) songlist.get(info.position).get("title");
    menu.setHeaderTitle(title);
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    long id = ((AdapterContextMenuInfo) menuInfo).id;
    if (id != -1) {
      menu.setHeaderTitle(mDbAdapter.getBookmarkById(id)[0]);
    }

    menu.add(0, MENU_OPEN_IN_TAB, 0, R.string.BookmarksListActivity_MenuOpenInTab);
    menu.add(0, MENU_EDIT_BOOKMARK, 0, R.string.BookmarksListActivity_MenuEditBookmark);
    menu.add(0, MENU_DELETE_BOOKMARK, 0, R.string.BookmarksListActivity_MenuDeleteBookmark);
  }
  @Override
  public void onCreateContextMenu(
      final ContextMenu menu, final View v, final ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    categoryClicked =
        (CategoryRecord)
            getListView().getItemAtPosition(((AdapterContextMenuInfo) menuInfo).position);

    menu.setHeaderTitle(categoryClicked.getCategoryName());

    menu.add(0, 1, 0, R.string.category_menu_edit);
    menu.add(0, 2, 0, R.string.category_menu_del);
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    if (v == this.getListView()) {
      AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;

      if (info.position < 0) return;

      apvContextMenuItem = menu.add(R.string.menu_apv);
      mupdfContextMenuItem = menu.add(R.string.menu_mupdf);
      vudroidContextMenuItem = menu.add(R.string.menu_vudroid);
    }
  }
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);
    AdapterView.AdapterContextMenuInfo info;
    info = (AdapterView.AdapterContextMenuInfo) menuInfo;
    Cursor cursor = (Cursor) getListAdapter().getItem(info.position);

    // set context menu title to "<entry title> @ <creation date>"
    menu.setHeaderTitle(
        "\""
            + cursor.getString(cursor.getColumnIndex(DiaryDatabaseHelper.KEY_TITLE))
            + "\""
            + " @ "
            + cursor.getString(cursor.getColumnIndex(DiaryDatabaseHelper.KEY_DATE)));
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.context_menu, menu);
  }
Exemple #26
0
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);

    // Get the info on which item was selected
    AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;

    // Get the Adapter behind your ListView (this assumes you're using
    // a ListActivity; if you're not, you'll have to store the Adapter yourself
    // in some way that can be accessed here.)
    Adapter adapter = getListAdapter();

    // Retrieve the item that was clicked on
    Object selItem = adapter.getItem(info.position);
    long mRowId = info.id;
    String itemStr = (String) selItem;

    menu.setHeaderTitle((String) selItem);
    menu.add(0, mDelete, 0, R.string.menu_delete);
    menu.add(0, mRename, 0, R.string.menu_rename);
  }
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   //	menu.add(0, MENU_DELETE_GEATTE, 0, R.string.menu_delete);
 }
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   menu.add(0, MENU_DELETE_NOTE, 0, R.string.note_delete);
   menu.add(0, MENU_EDIT_NOTE, 1, R.string.note_edit);
 }
Exemple #29
0
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   menu.add(0, DELETE_ID, 0, R.string.menu_delete);
 } // onCreateContextMenu
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   listActivityHelper.onCreateContextMenu(menu, v, menuInfo);
 }