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.
精彩评论