# Remove green border around Android application

**URL:** <https://forums.unrealengine.com/t/remove-green-border-around-android-application/269901>\
**Category:** Mobile\
**Tags:** UE4-24, unreal-engine, Android, question\
**Created:** [January 3, 2022, 4:37pm UTC](https://forums.unrealengine.com/t/remove-green-border-around-android-application/269901 "2022-01-03T16:37:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YNNNNNNNNNY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YNNNNNNNNNY](https://forums.unrealengine.com/u/YNNNNNNNNNY)\
**Post date:** [January 3, 2022, 4:37pm UTC](https://forums.unrealengine.com/t/remove-green-border-around-android-application/269901/1 "2022-01-03T16:37:42Z")

</div>

I am currently having an issue with an Android application built with UE4.24 having a green frame around the body of the application:

These are what I tried to do.

to use usb keyboard  
set in Config\DefaultEngine.ini under [SystemSettings]

```auto
GameName=MyUEAndroidProject
[SystemSettings]
Android.EnableMouse=1
Android.EnableHardwareKeyboard=1

```

to disable defaultFocusHighlightEnabled  
set in C:\Program Files\Epic Games\UE\_4.24\Engine\Build\Android\Java\res\values

```auto
    <style name="UE4BaseTheme" parent = "@android:style/Theme.Black.NoTitleBar.Fullscreen">
      <item name="android:defaultFocusHighlightEnabled">false</item>
    </style>

```

I type usb keyboard and appear green border.  
Anyone help me. Thanks.

Reference  
[https://stackoverflow.com/questions/49256092/remove-green-border-around-android-application](https://stackoverflow.com/questions/49256092/remove-green-border-around-android-application)

---

<div class="post-metadata">

**Author:** ![YNNNNNNNNNY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YNNNNNNNNNY](https://forums.unrealengine.com/u/YNNNNNNNNNY)\
**Post date:** [January 6, 2022, 4:29am UTC](https://forums.unrealengine.com/t/remove-green-border-around-android-application/269901/2 "2022-01-06T04:29:28Z")

</div>

I solved myself

change 3files under  
`C:\Program Files\Epic Games\UE_4.24\Engine\Build\Android\Java\res\`  
values\styles.xml  
values-land\styles.xml  
values-port\styles.xml

from  
` <style name="UE4BaseTheme" parent = "@android:style/Theme.Black.NoTitleBar.Fullscreen" />`  
to

```auto
  <style name="UE4BaseTheme" parent = "@android:style/Theme.Black.NoTitleBar.Fullscreen">
    <item name="android:defaultFocusHighlightEnabled">false</item>
    <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
  </style>

```

and must set project settings\android  
show launch images = true

 ![values](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/7/874c82292a02c19126331b959cd6c861fadfd9a3.jpeg)

---

<div class="post-metadata">

**Author:** ![EvoPulseGaming](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvoPulseGaming](https://forums.unrealengine.com/u/EvoPulseGaming)\
**Post date:** [March 25, 2025, 3:35am UTC](https://forums.unrealengine.com/t/remove-green-border-around-android-application/269901/3 "2025-03-25T03:35:28Z")

</div>

Thank you for this.  
Btw its “bShowLaunchImage=True”

Also in UE5 this has changed slightly:

From:

```auto
<style name="UnrealBaseTheme" parent = "Theme.Black.AppCompat.NoActionBar.FullScreen" />

```

to

```auto
    <style name="UnrealBaseTheme" parent = "Theme.Black.AppCompat.NoActionBar.FullScreen">
	<item name="android:defaultFocusHighlightEnabled">false</item>
	<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
	</style>

```

You’d think after 3 years they would have fixed this by now?

Other Unreal Games with this problem:  
Fortnight  
Rocket League.  
See here:  
[https://www.reddit.com/r/OdinHandheld/comments/zg6mqs/green\_border\_around\_native\_android\_games/](https://www.reddit.com/r/OdinHandheld/comments/zg6mqs/green_border_around_native_android_games/)

To add some repro:  
Connect Vysor to your android, and when in game, press any of the direction arrow keys on your keyboard and you’ll get a green border. (In UE5.5 you get a transparent grey overlap on top of the entire app)

Some users trigger this bug with certain controllers. I suspect those controllers register as some sort of keyboard.
