android.app.Activity.onMenuOpened()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(312)

本文整理了Java中android.app.Activity.onMenuOpened()方法的一些代码示例,展示了Activity.onMenuOpened()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onMenuOpened()方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onMenuOpened

Activity.onMenuOpened介绍

暂无

代码示例

代码示例来源:origin: com.uphyca/android-junit4-robolectric

/**
 * @param featureId
 * @param menu
 * @return
 * @see android.app.Activity#onMenuOpened(int, android.view.Menu)
 */
public boolean onMenuOpened(int featureId,
              Menu menu) {
  return mActivity.onMenuOpened(featureId, menu);
}

代码示例来源:origin: iqiyi/Neptune

@Override
public boolean onMenuOpened(int int0, android.view.Menu menu1) {
  return mOriginActivity.onMenuOpened(int0, menu1);
}

代码示例来源:origin: shazam/android-aspects

@Override
public boolean onMenuOpened(int featureId, Menu menu) {
  return super.onMenuOpened(featureId, menu) || dispatcher.dispatchOnMenuOpened(this, featureId, menu);
}

代码示例来源:origin: com.actionbarsherlock/actionbarsherlock

@Override
public final boolean onMenuOpened(int featureId, android.view.Menu menu) {
  if (getSherlock().dispatchMenuOpened(featureId, menu)) {
    return true;
  }
  return super.onMenuOpened(featureId, menu);
}

代码示例来源:origin: com.willowtreeapps/oak-demos

@Override
public final boolean onMenuOpened(int featureId, android.view.Menu menu) {
  if (getSherlock().dispatchMenuOpened(featureId, menu)) {
    return true;
  }
  return super.onMenuOpened(featureId, menu);
}

代码示例来源:origin: ELynx/pokemon-go-xposed-mitm

public boolean onMenuOpened(int featureId, android.view.Menu menu) {
 if (ScriptLoader.isCalledFromJRuby()) return super.onMenuOpened(featureId, menu);
 if (!JRubyAdapter.isInitialized()) {
  Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onMenuOpened");
  return super.onMenuOpened(featureId, menu);
 }
 String rubyClassName = scriptInfo.getRubyClassName();
 if (rubyClassName == null) return super.onMenuOpened(featureId, menu);
 if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onMenuOpened}")) {
  return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onMenuOpened", new Object[]{featureId, menu});
 } else {
  if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_menu_opened}")) {
   return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_menu_opened", new Object[]{featureId, menu});
  } else {
   if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_menu_opened}")) {
    return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_menu_opened", new Object[]{featureId, menu});
   } else {
    return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onMenuOpened", new Object[]{featureId, menu});
   }
  }
 }
}

相关文章

Activity类方法