@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;
 }
Exemplo n.º 3
0
  @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;
    }
  }
Exemplo n.º 4
0
 @Override
 public void setSubtitle(int resId) {
   mActionMode.setSubtitle(resId);
 }
Exemplo n.º 5
0
 @Override
 public void setSubtitle(CharSequence subtitle) {
   mActionMode.setSubtitle(subtitle);
 }
Exemplo n.º 6
0
 public void setSubtitle(CharSequence charsequence) {
   mWrappedObject.setSubtitle(charsequence);
 }
Exemplo n.º 7
0
 public void setSubtitle(int i) {
   mWrappedObject.setSubtitle(i);
 }