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>
精彩评论