开发者

Android - Remove top banner in new application?

开发者 https://www.devze.com 2023-02-08 05:46 出处:网络
Is there a way to remove the banner that appears at the top of my new Android application that has the开发者_如何学Python application name in it? I think I need to do something in the AndroidManifest.

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


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">


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消