去除游戏的白色边框

最近在使用AndEngine时发现游戏运行时会有白色边框。

估计是新版的ADT在生成项目模板时默认将背景设置为白色。

修改方法其实很简单,

打开AndroidManifest.xml文件,

找到

<application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">

删除其中的

android:theme="@style/AppTheme"


即可。毕竟大部分手机屏幕的边框都是黑色的,这样在玩游戏时看上去要顺眼一些。

你可能感兴趣的:(游戏,android,application,手机)