ActivityGroup切换Activity时非全屏

 ScrollView container = (ScrollView) ((ActivityGroup) getParent()).getWindow().findViewById(R.id.containerBody);
 container.removeAllViews();
 Intent intent = new Intent(A.this, B.class);
 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
 Window subActivity = ((ActivityGroup) A.this.getParent()).getLocalActivityManager().startActivity("B", intent);
 container.addView(subActivity.getDecorView());


ActivityGroup的A.java中的某个控件启动B.java,而不让B全屏(保证显示出tab栏)

你可能感兴趣的:(ActivityGroup切换Activity时非全屏)