@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { selectedPos = new HashSet<Integer>(); mode.setSubtitle(R.string.selected); mode.getMenuInflater().inflate(R.menu.action_contact_list, menu); return true; }
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { mode.setTitle(null); mode.setSubtitle(null); mEditable = mActionHandler.isSelectionEditable(); createActionMenu(mode, menu); return true; }
@Override public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) { // TODO Auto-generated method stub final int checkedCount = content.getCheckedItemCount(); switch (checkedCount) { case 0: mode.setSubtitle(null); break; case 1: mode.setSubtitle("One item selected"); break; default: mode.setSubtitle("" + checkedCount); break; } }
@Override public void setSubtitle(int resId) { mActionMode.setSubtitle(resId); }
@Override public void setSubtitle(CharSequence subtitle) { mActionMode.setSubtitle(subtitle); }
public void setSubtitle(CharSequence charsequence) { mWrappedObject.setSubtitle(charsequence); }
public void setSubtitle(int i) { mWrappedObject.setSubtitle(i); }