0

I have this activity made with actionBarSherlock. Is it possible to hide title of activity (not only text but the title bar) I tried:

getSupportActionBar().hide();

but it hides tabs too.

Picture: https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-prn1/q71/1017267_10200157522600680_915484448_n.jpg

SpeedEX505
  • 1,976
  • 4
  • 22
  • 33

3 Answers3

4

1.You must call setNavigationMode(NAVIGATION_MODE_TABS) to make the tabs visible

getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

2.You must disable the activity title by calling setDisplayShowTitleEnabled(false)

getSupportActionBar().setDisplayShowTitleEnabled(false);

3.You must disable application home affordance by calling setDisplayShowHomeEnabled(false)

getSupportActionBar().setDisplayShowHomeEnabled(false);

This way should able to able to get a look like this in your activity.

hcelaloner
  • 306
  • 1
  • 2
  • 6
0

try one of these possibly?

add this to the manifest file under application:

android:theme="@android:style/Theme.NoTitleBar"

or in your activity:

ActionBar actionBar = getActionBar();
actionBar.hide();    
james
  • 1,035
  • 2
  • 14
  • 33
0

getActionBar().setDisplayOptions(Window.FEATURE_NO_TITLE);

It worked for me hope it will help you out. And this will give result like this

Alexandr Nikitin
  • 7,258
  • 2
  • 34
  • 42
Rohit Jain
  • 229
  • 1
  • 4
  • 7