开发者

How to show activities inside of a running activity?

I want to show my activities inside of a running activity. I need something like frame in html language that is used for showing other pages inside a 开发者_如何学运维page. I know Tabhost has this ability. Which one of other controls has this ability?

Thanks,


Google introduced fragments in Android 3.0 and upper to create a portion of user interface in an Activity. But it is not two Activity, becuase activity <> window. For lower version you can manually load xml layout in your activity.


The Fragment API is really your best choice, it's quite easy to use and you can dynamicly add them to your Activity Layout (take a look to Framgent For All - google Article) by code using the FragmentManager, this feature it's since 3.0 altough Google also released a pretty nice Compatibility Package that you can download out of the SDK Manager and added to your project like this Fragment For All:

How to show activities inside of a running activity?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜