How do I change the colour of the white border when using RatioResolutionPolicy in AndEngine?

andengine, android, java

Solution

Unfortunately I have the same problem, but only when I updated my Android SDK, so maybe that was the problem anyway, but the solution to your problem and it was for mine, it's to go to `res/values/styles.xml` and edit this line:

style name="AppTheme" parent="android:Theme.Light"

Change to `Theme.Black`.

Do the same thing for all `styles.xml` files, i.e. inside the folders `res/values-v11` and `res/values-v14`.

That should work, now the borders are no longer white.

Problem

I am testing out different resolutions on my dark colour themed game. And I have noticed AndEngine will leave white borders when using RatioResolutionPolicy. How can I change the colour of this border to make my game appear more easy to the eye? ``` final EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), mCamera).setNeedsSound(true); ```

Original source