本文整理了Java中android.app.Activity.onContentChanged()
方法的一些代码示例,展示了Activity.onContentChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onContentChanged()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onContentChanged
暂无
代码示例来源:origin: sephiroth74/ImageViewZoom
@Override
public void onContentChanged() {
super.onContentChanged();
mImage = (ImageViewTouch) findViewById(R.id.image);
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
*
* @see android.app.Activity#onContentChanged()
*/
public void onContentChanged() {
mActivity.onContentChanged();
}
代码示例来源:origin: iqiyi/Neptune
@Override
public void onContentChanged() {
mOriginActivity.onContentChanged();
}
代码示例来源:origin: com.github.japgolly.android.test/robolectric
@Implementation
public void setContentView(View view) {
contentView = view;
realActivity.onContentChanged();
}
代码示例来源:origin: shazam/android-aspects
@Override
public void onContentChanged() {
super.onContentChanged();
dispatcher.dispatchOnContentChanged(this);
}
代码示例来源:origin: com.github.japgolly.android.test/robolectric
/**
* Sets the {@code contentView} for this {@code Activity} by invoking the
* {@link android.view.LayoutInflater}
*
* @param layoutResID ID of the layout to inflate
* @see #getContentView()
*/
@Implementation
public void setContentView(int layoutResID) {
contentView = getLayoutInflater().inflate(layoutResID, new FrameLayout(realActivity));
realActivity.onContentChanged();
}
代码示例来源:origin: baidu/GPT
@Override
public void onContentChanged() {
Activity target = getCurrentActivity();
if (mTargetActivity != null) {
mTargetActivity.onContentChanged();
} else {
super.onContentChanged();
}
}
代码示例来源:origin: iqiyi/Neptune
@Override
public void onContentChanged() {
super.onContentChanged();
if (getController() != null && getController().getPlugin() != null) {
getController().getPlugin().onContentChanged();
}
}
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public void onContentChanged() {
if (ScriptLoader.isCalledFromJRuby()) {super.onContentChanged(); return;}
if (!JRubyAdapter.isInitialized()) {
Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onContentChanged");
{super.onContentChanged(); return;}
}
String rubyClassName = scriptInfo.getRubyClassName();
if (rubyClassName == null) {super.onContentChanged(); return;}
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onContentChanged}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onContentChanged");
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_content_changed}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_content_changed");
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_content_changed}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_content_changed");
} else {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onContentChanged");
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!