问题的ActivityGroup开幕子活动 [英] Problem in opening Sub Activity of ActivityGroup

查看:90
本文介绍了问题的ActivityGroup开幕子活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的ActivityGroup工作,我想打开另一个选项卡中选择的ActivityGroup的子活动。请人让我知道是否有可能或不?

I am working with ActivityGroup and I want to open an sub activity of the ActivityGroup on selection of another tab. Please anyone let me know if it is possible or not?

例子 - 我有TAB1和我在同一个标​​签使用的ActivityGroup打开一个子活动(例如活动A),现在当我点击TAB2我应该和其所有内容打开相同的活动A。

example - I have tab1 and I open a subActivity(say activity "A") in the same tab using ActivityGroup and now when I click on tab2 I should open the same Activity "A" with all its contents.

先谢谢了。

推荐答案

我真的,强烈建议您停止使用的ActivityGroup。这一直是德precated。

I really, strongly urge you to stop using ActivityGroup. This has been deprecated.

片段支持库提供了一个更好的方法做这些事情。 3.2版本包括显示如何使用标签控件使用它的例子。请参阅<一个href=\"http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/index.html\">\"Fragment标签例子和 TabActivity 文档。

The fragment support library provides a much better way to do these things. The 3.2 version includes an example showing how to use it with the tab widget. See the "Fragment Tabs" example and the TabActivity documentation.

这些可以用来降低到了Android 1.6。

These can be used down to Android 1.6.

(也有很多的演示还有其他事情可以做的碎片的。)

(There are also lots of demos there for other things you can do with fragments.)

这篇关于问题的ActivityGroup开幕子活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆