开发者

How to keep TabHost Omnipresent on 2.2 Froyo?

I want the easiest way to keep a TabHost omnipresent no matter how deep into the activities I go. One idea I had was to use the Global Application object to keep the state and then layout the TabHost at the bottom of a开发者_如何转开发ll activities. Is there a more standard way to do this? If not, what pitfalls might I run into with my idea?


You can do this easily by using Fragments. Use a main Activity with a tabhost, have a container for each of the tabs. Then it's just a matter of replacing fragments.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜