4

I am using Actionbarshelock library. I have three tabs. each tab contains a fragment. In my middle tab I have sliding drawer. I want to hide action bar as well as tabs from screen so that i can gain more space for sliding drawer. I hide the action bar using `hide' method but don't know how to hide the tabs and show only that middle fragment in whole screen with sliding drawer open.

I have tried

requestWindowFeature(com.actionbarsherlock.view.Window.FEATURE_ACTION_BAR_OVERLAY);

It hides tabs but it has to be set before adding fragments and setContentView.

Sunny
  • 14,522
  • 15
  • 84
  • 129
  • refear this link [http://stackoverflow.com/questions/12928092/actionbarsherlock-hide-actionbar-while-displaying-tabs][1] [1]: http://stackoverflow.com/questions/12928092/actionbarsherlock-hide-actionbar-while-displaying-tabs – Bhavesh Vadalia Apr 03 '13 at 10:24
  • 5
    Thanks! Got the solution myself. `findViewById(android.R.id.tabs).setVisibility(View.Gone);` – Sunny Apr 03 '13 at 10:32
  • If you got your answer then remove the question – anonymous May 16 '16 at 12:27

0 Answers0