开发者

Android: Why shouldn't I use activities inside tabs?

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 re开发者_开发百科commended 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜