Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of the program name bar at the top of the application?

Tags:

android

i would like to get rid of the defualt grey bar which apears at the top of my application. I just can't seem to find the attribute or setting to do so. how can this be achived? thanks

like image 237
Jason Avatar asked Aug 19 '10 22:08

Jason


2 Answers

Use android:theme="@android:style/Theme.NoTitleBar", either for this specific <activity> element in your manifest, or for the whole <application> element if you want it gone for all of them. Here's a FAQ entry about it.

like image 147
CommonsWare Avatar answered Sep 28 '22 07:09

CommonsWare


I tried the manifest method but for some reason it wasn't working. However using the .java method as described here worked.

requestWindowFeature(Window.FEATURE_NO_TITLE);
like image 42
KRL Avatar answered Sep 28 '22 08:09

KRL