Example usage for android.view ActionMode getMenuInflater

List of usage examples for android.view ActionMode getMenuInflater

Introduction

In this page you can find the example usage for android.view ActionMode getMenuInflater.

Prototype

public abstract MenuInflater getMenuInflater();

Source Link

Document

Returns a MenuInflater with the ActionMode's context.

Usage

From source file:org.mariotaku.twidere.util.StatusActionModeCallback.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    mode.getMenuInflater().inflate(R.menu.action_status_text_selection, menu);
    mode.setTitle(android.R.string.selectTextMode);
    return true;/*from   w ww  .ja  v a2  s  . c  o  m*/
}

From source file:it.gulch.linuxday.android.widgets.BookmarksMultiChoiceModeListener.java

@Override
public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
    mode.getMenuInflater().inflate(R.menu.action_mode_bookmarks, menu);
    return true;/*w  ww  . j  a  va2  s  . com*/
}

From source file:com.jaspersoft.android.jaspermobile.activities.favorites.adapter.FavoritesAdapter.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.am_favorites_menu, menu);
    return true;/*from  w  w  w  .j  ava  2s  . c o m*/
}

From source file:com.theelix.libreexplorer.ActionModeCallback.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.cab_menu, menu);
    return true;/*from  w w  w .j  a  va 2s . c  om*/
}

From source file:net.kjmaster.cookiemom.booth.add.AddBoothActivity.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();

    inflater.inflate(R.menu.add_scout, menu);

    return true;/*from www  . ja v  a2  s  .c om*/
}

From source file:com.btmura.android.reddit.app.AccountListFragment.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    mode.getMenuInflater().inflate(R.menu.account_action_menu, menu);
    return true;/*ww w .  j  a v  a  2 s. c o m*/
}

From source file:com.jaspersoft.android.jaspermobile.activities.repository.adapter.ResourceAdapter.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.am_resource_menu, menu);
    return true;/*from w w  w . j  a v a 2  s.  c  o m*/
}

From source file:com.android.messaging.ui.conversationlist.MultiSelectActionModeCallback.java

@Override
public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
    actionMode.getMenuInflater().inflate(R.menu.conversation_list_fragment_select_menu, menu);
    mArchiveMenuItem = menu.findItem(R.id.action_archive);
    mUnarchiveMenuItem = menu.findItem(R.id.action_unarchive);
    mAddContactMenuItem = menu.findItem(R.id.action_add_contact);
    mBlockMenuItem = menu.findItem(R.id.action_block);
    mNotificationOffMenuItem = menu.findItem(R.id.action_notification_off);
    mNotificationOnMenuItem = menu.findItem(R.id.action_notification_on);
    mHasInflated = true;//from w  ww . ja  v  a2s  . co  m
    updateActionIconsVisiblity();
    return true;
}

From source file:net.kjmaster.cookiemom.editor.EditDataActivity.java

@Override
public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
    MenuInflater inflater = actionMode.getMenuInflater();

    if (inflater != null) {
        inflater.inflate(R.menu.add_scout, menu);
    }/*from  w  w w  .j  a v a2s  .  co m*/
    mActionMode = actionMode;
    isCancel = false;
    return true;

}

From source file:com.jaspersoft.android.jaspermobile.activities.storage.adapter.FileAdapter.java

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.am_saved_items_menu, menu);
    return true;//from ww w . j  a  va2s .  c  o m
}