Reputation: 15986
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 all activities. Is there a more standard way to do this? If not, what pitfalls might I run into with my idea?
Upvotes: 0
Views: 133
Reputation: 25761
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.
Upvotes: 1