本文整理了Java中android.app.Activity.onAttachFragment()
方法的一些代码示例,展示了Activity.onAttachFragment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onAttachFragment()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onAttachFragment
暂无
代码示例来源:origin: iqiyi/Neptune
@Override
public void onAttachFragment(android.app.Fragment fragment0) {
mOriginActivity.onAttachFragment(fragment0);
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @param fragment
* @see android.app.Activity#onAttachFragment(android.app.Fragment)
*/
public void onAttachFragment(Fragment fragment) {
mActivity.onAttachFragment(fragment);
}
代码示例来源:origin: kshoji/USB-MIDI-Driver
@Override
public void onAttachFragment(Fragment fragment) {
super.onAttachFragment(fragment);
attachedFragments.add(new WeakReference<Fragment>(fragment));
}
代码示例来源:origin: shazam/android-aspects
@Override
public void onAttachFragment(Fragment fragment) {
super.onAttachFragment(fragment);
dispatcher.dispatchOnAttachFragment(this, fragment);
}
代码示例来源:origin: iqiyi/Neptune
@Override
public void onAttachFragment(Fragment fragment) {
super.onAttachFragment(fragment);
PluginDebugLog.runtimeLog(TAG, "InstrActivityProxy1 onAttachFragment");
if (getController() != null && getController().getPlugin() != null) {
getController().getPlugin().onAttachFragment(fragment);
}
}
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public void onAttachFragment(android.app.Fragment fragment) {
if (ScriptLoader.isCalledFromJRuby()) {super.onAttachFragment(fragment); return;}
if (!JRubyAdapter.isInitialized()) {
Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onAttachFragment");
{super.onAttachFragment(fragment); return;}
}
String rubyClassName = scriptInfo.getRubyClassName();
if (rubyClassName == null) {super.onAttachFragment(fragment); return;}
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onAttachFragment}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onAttachFragment", fragment);
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_attach_fragment}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_attach_fragment", fragment);
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_attach_fragment}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_attach_fragment", fragment);
} else {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onAttachFragment", fragment);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!