Search code examples
androidandroid-actionbaractionbarsherlock

Show only tabs using actionBarSherlock


I'm building an application using actionbarSherlock, and i'm using tabs in one of my actives. Is it possible to show only the tabs and hide the bar ?

In the left is how it's actually displayed and in the right it's how i would like to display

action_bar


Solution

  • The solutions is :

    ActionBar bar = getSupportActionBar();
    bar.setDisplayShowTitleEnabled(false);  
    bar.setDisplayShowHomeEnabled(false);