Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Remove top banner in new application?

Tags:

android

Is there a way to remove the banner that appears at the top of my new Android application that has the application name in it? I think I need to do something in the AndroidManifest.xml file, but I'm not sure what to do.

like image 777
Naftuli Kay Avatar asked Feb 04 '11 02:02

Naftuli Kay


2 Answers

This is actually in the Common Tasks and How to Do Them under the section "Configuring General Window Properties."

[update] as per the comments

Either call...

requestWindowFeature(Window.FEATURE_NO_TITLE);

Or add the following to your Android manifest file...

<application android:icon="@drawable/icon" android:theme="@android:style/Theme.NoTitleBar">

like image 60
Andrew White Avatar answered Oct 18 '22 03:10

Andrew White


In file Style.xml:

(App--->src--->main--->res->values--->styles.xml) changes the < resources> to :

<resources>

    <style name="AppTheme" parent="Theme.AppCompat.NoActionBar">

    </style>

</resources>
like image 37
chaunv Avatar answered Oct 18 '22 02:10

chaunv