本文整理了Java中android.app.Activity.isChild()
方法的一些代码示例,展示了Activity.isChild()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.isChild()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:isChild
暂无
代码示例来源:origin: square/assertj-android
public S isNotChild() {
isNotNull();
assertThat(actual.isChild()) //
.overridingErrorMessage("Expected not to be a child but was a child.") //
.isFalse();
return myself;
}
代码示例来源:origin: square/assertj-android
public S isChild() {
isNotNull();
assertThat(actual.isChild()) //
.overridingErrorMessage("Expected to be a child but was not a child.") //
.isTrue();
return myself;
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
public void onActivityPause(Activity activity) {
if (!activity.isChild()) {
}
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
public void onActivityResume(Activity activity) {
if (!activity.isChild()) {
}
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
public void onActivityDestory(Activity activity) {
if (!activity.isChild()) {
if (activity.getClass().getClassLoader() instanceof PluginClassLoader) {
BroadcastReceiver br = receivers.remove(activity);
activity.unregisterReceiver(br);
}
}
}
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
public void onActivityCreate(final Activity activity) {
if (!activity.isChild()) {
if (activity.getClass().getClassLoader() instanceof PluginClassLoader) {
String pluginId = ((PluginContextTheme)activity.getApplication().getBaseContext()).getPluginDescriptor().getPackageName();
BroadcastReceiver br = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
activity.finish();
}
};
receivers.put(activity, br);
activity.registerReceiver(br, new IntentFilter(pluginId + ACTION_UN_INSTALL_PLUGIN));
}
}
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
int orientation = (int)Long.parseLong(pluginActivityInfo.getScreenOrientation());
if (orientation != activityInfo.screenOrientation && !activity.isChild()) {
if (Build.VERSION.SDK_INT >= 18 && !activity.isChild()) {
Boolean isImmersive = ResourceUtil.getBoolean(pluginActivityInfo.getImmersive(), pluginContext);
if (isImmersive != null) {
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @return
* @see android.app.Activity#isChild()
*/
public final boolean isChild() {
return mActivity.isChild();
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
if (activity.isChild()) {
代码示例来源:origin: com.squareup.assertj/assertj-android
public S isChild() {
isNotNull();
assertThat(actual.isChild()) //
.overridingErrorMessage("Expected to be a child but was not a child.") //
.isTrue();
return myself;
}
代码示例来源:origin: com.squareup.assertj/assertj-android
public S isNotChild() {
isNotNull();
assertThat(actual.isChild()) //
.overridingErrorMessage("Expected not to be a child but was a child.") //
.isFalse();
return myself;
}
代码示例来源:origin: jbruchanov/AnUitor
data.put("TitleColor", getStringColor(activity.getTitleColor()));
data.put("HasWindowFocus", activity.hasWindowFocus());
data.put("IsChild", activity.isChild());
data.put("IsDestroyed", activity.isFinishing());
data.put("IsTaskRoot", activity.isTaskRoot());
代码示例来源:origin: com.actionbarsherlock/actionbarsherlock
private void initActionBar() {
if (ActionBarSherlock.DEBUG) Log.d(TAG, "[initActionBar]");
// Initializing the window decor can change window feature flags.
// Make sure that we have the correct set before performing the test below.
if (mDecor == null) {
installDecor();
}
if ((aActionBar != null) || !hasFeature(Window.FEATURE_ACTION_BAR) || hasFeature(Window.FEATURE_NO_TITLE) || mActivity.isChild()) {
return;
}
aActionBar = new ActionBarImpl(mActivity, mFeatures);
if (!mIsDelegate) {
//We may never get another chance to set the title
wActionBar.setWindowTitle(mActivity.getTitle());
}
}
代码示例来源:origin: com.willowtreeapps/oak-demos
private void initActionBar() {
if (DEBUG) Log.d(TAG, "[initActionBar]");
// Initializing the window decor can change window feature flags.
// Make sure that we have the correct set before performing the test below.
if (mDecor == null) {
installDecor();
}
if ((aActionBar != null) || !hasFeature(Window.FEATURE_ACTION_BAR) || hasFeature(Window.FEATURE_NO_TITLE) || mActivity.isChild()) {
return;
}
aActionBar = new ActionBarImpl(mActivity, mFeatures);
if (!mIsDelegate) {
//We may never get another chance to set the title
wActionBar.setWindowTitle(mActivity.getTitle());
}
}
内容来源于网络,如有侵权,请联系作者删除!