本文整理了Java中android.app.Activity.onPanelClosed()
方法的一些代码示例,展示了Activity.onPanelClosed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onPanelClosed()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onPanelClosed
暂无
代码示例来源:origin: iqiyi/Neptune
@Override
public void onPanelClosed(int int0, android.view.Menu menu1) {
mOriginActivity.onPanelClosed(int0, menu1);
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @param featureId
* @param menu
* @see android.app.Activity#onPanelClosed(int, android.view.Menu)
*/
public void onPanelClosed(int featureId,
Menu menu) {
mActivity.onPanelClosed(featureId, menu);
}
代码示例来源:origin: com.google.android/support-v4
/**
* Call onOptionsMenuClosed() on fragments.
*/
@Override
public void onPanelClosed(int featureId, Menu menu) {
switch (featureId) {
case Window.FEATURE_OPTIONS_PANEL:
mFragments.dispatchOptionsMenuClosed(menu);
break;
}
super.onPanelClosed(featureId, menu);
}
代码示例来源:origin: shazam/android-aspects
@Override
public void onPanelClosed(int featureId, Menu menu) {
super.onPanelClosed(featureId, menu);
dispatcher.dispatchOnPanelClosed(this, featureId, menu);
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Call onOptionsMenuClosed() on fragments.
*/
@Override
public void onPanelClosed(int featureId, Menu menu) {
switch (featureId) {
case Window.FEATURE_OPTIONS_PANEL:
mFragments.dispatchOptionsMenuClosed(menu);
break;
}
super.onPanelClosed(featureId, menu);
}
代码示例来源:origin: com.actionbarsherlock/actionbarsherlock
@Override
public void onPanelClosed(int featureId, android.view.Menu menu) {
getSherlock().dispatchPanelClosed(featureId, menu);
super.onPanelClosed(featureId, menu);
}
代码示例来源:origin: com.willowtreeapps/oak-demos
@Override
public void onPanelClosed(int featureId, android.view.Menu menu) {
getSherlock().dispatchPanelClosed(featureId, menu);
super.onPanelClosed(featureId, menu);
}
代码示例来源:origin: iqiyi/Neptune
@Override
public void onPanelClosed(int featureId, Menu menu) {
super.onPanelClosed(featureId, menu);
if (getController() != null && getController().getPlugin() != null) {
getController().getPlugin().onPanelClosed(featureId, menu);
}
}
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public void onPanelClosed(int featureId, android.view.Menu menu) {
if (ScriptLoader.isCalledFromJRuby()) {super.onPanelClosed(featureId, menu); return;}
if (!JRubyAdapter.isInitialized()) {
Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onPanelClosed");
{super.onPanelClosed(featureId, menu); return;}
}
String rubyClassName = scriptInfo.getRubyClassName();
if (rubyClassName == null) {super.onPanelClosed(featureId, menu); return;}
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onPanelClosed}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onPanelClosed", new Object[]{featureId, menu});
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_panel_closed}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_panel_closed", new Object[]{featureId, menu});
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_panel_closed}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_panel_closed", new Object[]{featureId, menu});
} else {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onPanelClosed", new Object[]{featureId, menu});
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!