Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActionBar at bottom with no TitleBar

In my app I have an ActionBar and have set android:uiOptions="splitActionBarWhenNarrow" in the manifest so on phones the it appears at the bottom.

I also set the following in code:

actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayShowHomeEnabled(false);

When I run the application in the emulator, I see the actionbar at the bottom but a black empty space where the icon and title should be if I don't disable them.

Can this be removed?

Its like this:

enter image description here

I started with left image before adding the code above and rather than seeing the centre image I see it as the right-hand image. I am not using the tabs in the images.... does this matter? Just using image for explanation!

like image 722
neildeadman Avatar asked Nov 12 '22 09:11

neildeadman


1 Answers

Did you try to put:

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

inside your AndroidManifest.xml?

like image 139
Nakayama Avatar answered Nov 14 '22 21:11

Nakayama