安卓:为什么不应该使用内标签的活动?标签

由网友(微笑式凋谢)分享简介:我读过的,我不应该使用活动作为我的标签内容的几个地方。我想知道这是为什么不推荐的方法...有什么建议?I've read at a few places that I should not be using Activities as contents of my tabs. I would like to know...

我读过的,我不应该使用活动作为我的标签内容的几个地方。我想知道这是为什么不推荐的方法...有什么建议?

I've read at a few places that I should not be using Activities as contents of my tabs. I would like to know why this is not a recommended approach... Any suggestions?

推荐答案

我会翻转它周围:为什么要使用活动标签?你要做的就是增加开销和复杂性。只需使用浏览的标签。

I'd flip it around: why would you want to use activities as tabs? All you do is add overhead and complexity. Just use Views for the tabs.

如果你有一些刚刚的的的两个标签和一个单独的独立活动,重用视图。

If you have something that just has to be both a tab and a separate standalone activity, reuse the View.

阅读全文

相关推荐

最新文章