android ActivityGroup管理activity,activity转换成view




Intent intent  = new Intent(this, 类);


//  ActivityGroup管理activity,Activity 转为 View
Window subActivity = atGroup.getLocalActivityManager().startActivity(“类名”, intent);

// 容器添加View
View view = subActivity.getDecorView();
view.dispatchWindowFocusChanged(true);
container = (LinearLayout) findViewById(R.id.Container);
container.addView(view);

你可能感兴趣的:(android)