Code example for ActionMode

Methods: finish

0
	 * {@inheritDoc} 
	 * @see android.view.ActionMode.Callback#onActionItemClicked(android.view.ActionMode, android.view.MenuItem) 
	 */ 
	@Override 
	public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) {
        actionMode.finish();
        return true; 
	} 
 
	/** 
	 * {@inheritDoc} 
	 * @see android.view.ActionMode.Callback#onCreateActionMode(android.view.ActionMode, android.view.Menu) 
	 */ 
	@Override 
	public boolean onCreateActionMode(ActionMode mode, Menu menu) {
        this.actionMode = mode;
        BirthdaysSelectionDataHolder.set(itemPosition);
 
        listItem.setBackgroundResource(R.drawable.abs__list_pressed_holo_light);
		mode.setTitle(BirthdaysDataHolder.getAsList().get(itemPosition).getDisplayName());
        Resources resources = BirthdaysListDataHolder.get().getResources();