Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blank title in action bar

Is it possible to remove title bar which I think is ugly and doesn't fit in my application but still use actionbar? After I call

    requestWindowFeature(Window.FEATURE_NO_TITLE | Window.FEATURE_ACTION_BAR);

the title bar stays but piece of my view is gone(cant scroll up)view of app

Is it possible to get rid of title bar but still keep actionbar, if I dont request it as window feature getActionBar() returns null everytime..

like image 852
Ruuhkis Avatar asked Jul 15 '12 16:07

Ruuhkis


1 Answers

Following Honeycomb, Action Bar was introduced to provide more functionalities, Well you can hide logo and title from it using this

ActionBar ab = getActionBar(); 
ab.setDisplayShowTitleEnabled(false); 
ab.setDisplayShowHomeEnabled(false);
like image 166
Raghav Avatar answered Nov 16 '22 00:11

Raghav