当前位置: 首页>>代码示例>>Java>>正文


Java ActionMode.getMenuInflater方法代码示例

本文整理汇总了Java中android.support.v7.view.ActionMode.getMenuInflater方法的典型用法代码示例。如果您正苦于以下问题:Java ActionMode.getMenuInflater方法的具体用法?Java ActionMode.getMenuInflater怎么用?Java ActionMode.getMenuInflater使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.support.v7.view.ActionMode的用法示例。


在下文中一共展示了ActionMode.getMenuInflater方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
  MenuInflater inflater = mode.getMenuInflater();
  inflater.inflate(R.menu.conversation_context, menu);

  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    Window window = getActivity().getWindow();
    statusBarColor = window.getStatusBarColor();
    window.setStatusBarColor(getResources().getColor(R.color.action_mode_status_bar));
  }

  setCorrectMenuVisibility(menu);
  return true;
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:15,代码来源:ConversationFragment.java

示例2: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
    if (BuildConfig.LOG_DEBUG) LogUtils.d(TAG, actionMode, menu);

    /* Inflate a menu resource providing context menu items. */
    MenuInflater inflater = actionMode.getMenuInflater();
    inflater.inflate(R.menu.query_cab, menu);

    return true;
}
 
开发者ID:orgzly,项目名称:orgzly-android,代码行数:11,代码来源:QueryFragment.java

示例3: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
    if (BuildConfig.LOG_DEBUG) LogUtils.d(TAG, actionMode, menu);

    /* Inflate a menu resource providing context menu items. */
    MenuInflater inflater = actionMode.getMenuInflater();
    inflater.inflate(R.menu.book_cab, menu);

    return true;
}
 
开发者ID:orgzly,项目名称:orgzly-android,代码行数:11,代码来源:BookFragment.java

示例4: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.menu_context_messages, menu);
    ((ChatFragment) getParentFragment()).setTabsHidden(true);
    mActionMode = mode;
    return true;
}
 
开发者ID:MCMrARM,项目名称:revolution-irc,代码行数:9,代码来源:ChatMessagesFragment.java

示例5: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();

    if (nextSelection.isWithPIN()) {
        inflater.inflate(R.menu.actionmode_menu, menu);
    } else {
        inflater.inflate(R.menu.actionmode_menu_nopin, menu);
    }
    return true;
}
 
开发者ID:privacyidea,项目名称:privacyidea-authenticator,代码行数:12,代码来源:MainActivity.java

示例6: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
    // Inflate a menu resource providing context menu items
    MenuInflater inflater = actionMode.getMenuInflater();
    inflater.inflate(R.menu.settings_cab_actions, menu);
    isMultiSelectionActive = true;
    return true;
}
 
开发者ID:ChessCom,项目名称:android-chessclock,代码行数:9,代码来源:SettingsFragment.java

示例7: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    // Inflate a menu resource providing context menu items
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.comment_context_menu, menu);

    menu.findItem(R.id.editMenuItem).setVisible(hasAccessToEditComment(selectedComment.getAuthorId()));

    return true;
}
 
开发者ID:rozdoum,项目名称:social-app-android,代码行数:11,代码来源:PostDetailsActivity.java

示例8: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.messages_menu, menu);
    return true;
}
 
开发者ID:PhoenixDevTeam,项目名称:Phoenix-for-VK,代码行数:7,代码来源:ChatFragment.java

示例9: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(final ActionMode mode, final Menu menu) {
    final MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.action_mode_menu, menu);
    return true;
}
 
开发者ID:GlobusLTD,项目名称:recyclerview-android,代码行数:7,代码来源:MultipleModalChoiceModeExampleActivity.java

示例10: onCreateActionMode

import android.support.v7.view.ActionMode; //导入方法依赖的package包/类
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = mode.getMenuInflater();
    inflater.inflate(R.menu.menu_multi_choice, menu);
    return true;
}
 
开发者ID:mingdroid,项目名称:tumbviewer,代码行数:7,代码来源:PhotoFragment.java


注:本文中的android.support.v7.view.ActionMode.getMenuInflater方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。