Reputation: 14638
I was reading about the action bar in Android (how it has tabs). My question is, assuming that each tab click has its fragment, how can I make the last tab (say the 3rd tab) takes over the whole screen? I mean if someone clicks on the tab3 widget, instead of just display the content under the action bar, I want this fragment to be the full screen (expands over the action bar screen).
Please help me Thank you
Upvotes: 1
Views: 943
Reputation: 67502
Use getActionBar().hide()
(or getSupportActionBar().hide()
if you are using the compability package) to hide the Action Bar. You should call this method when your 3rd tab is switched to.
Keep in mind that if you hide the Action Bar, you may hide all of your other navigation options, too. You may want to leave the user some way out.
Upvotes: 3