コード例 #1
0
 @Override
 public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
   boolean result = false;
   if (host != null) {
     result = mHost.performAction(item, getSelectedItemPositions().size());
   }
   if (activeMode != null) {
     activeMode.finish();
   }
   return result;
 }
コード例 #2
0
 public SentMessagesActionModeListener(final SentMessageFragment host, ListView modeView) {
   super((ActionBarActivity) host.getActivity(), modeView, R.menu.sent_messages_context_menu);
   mHost = host;
 }