Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/222.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何将一个活动放在另一个活动上_Android - Fatal编程技术网

Android 如何将一个活动放在另一个活动上

Android 如何将一个活动放在另一个活动上,android,Android,朋友的, 我的任务是在标题下方设置水平滑动选项卡,如何在另一个活动上设置活动。您需要一个布局,该布局是您要放置活动的区域。看看 尝试在android开发者站点中签出TabActivity和TabHost 这可能对你有帮助 TheLayout.removeAllViews(); View view = getLocalActivityManager().startActivity(id, intent).getDecorView(); TheLayout.addView(view, new Lin

朋友的,
我的任务是在标题下方设置水平滑动选项卡,如何在另一个活动上设置活动。

您需要一个布局,该布局是您要放置活动的区域。看看


尝试在android开发者站点中签出TabActivity和TabHost 这可能对你有帮助

TheLayout.removeAllViews();
View view = getLocalActivityManager().startActivity(id, intent).getDecorView();
TheLayout.addView(view, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));