I have an Android application with four tabs. When I'm in one of the tabs, click a button which starts a new intent and go to the next view, the tabbar disappears. Any suggestions to how I can prevent that from happening? I want to have the tabbar visible no matter where the user is in the application.
Asked
Active
Viewed 953 times
1 Answers
2
You will need to include the tabs (is it a TabHost?) in the layout for each of your Activities. Perhaps what you really want to be doing is switching tabs within the TabHost rather than launching a new Activity...
You can do this by using TabHost.setCurrentTab
You might also be interested in doing something like the button bar at the top of the Twitter app. Some details on implementing that can be found here: button bar similar to twitter app for android

Community
- 1
- 1

Eric Levine
- 13,536
- 5
- 49
- 49