hunterp
hunterp

Reputation: 15986

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 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

Answers (1)

aromero
aromero

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

Related Questions