开发者

How to keep TabHost Omnipresent on 2.2 Froyo?

开发者 https://www.devze.com 2023-03-20 21:29 出处:网络
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

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

精彩评论

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