Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Issue with hiding title bar

I want to hide the title bar in all activities of my app. To do that, I put the following attribute in the tag:

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

The title bar is now hidden, but my problem is that my app looks weird with that attribute.

Before:

http://imageshack.us/a/img831/6905/screenshot1355296053406.png

with the noTitleBar attribute:

http://imageshack.us/a/img211/581/screenshot1355295921669.png

It looks like there is less contrast..

It makes no difference if the noTitleBar attribute is in the application tag or in each activity tag.

Hope you can help me with my problem.

like image 435
user1882359 Avatar asked Dec 12 '12 07:12

user1882359


1 Answers

In onCreate() of activity write following:

this.requestWindowFeature(Window.FEATURE_NO_TITLE);
like image 176
hemu Avatar answered Sep 27 '22 19:09

hemu