Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Fullscreen on Galaxy S8/S9
Started by bjoern Nov 28 2018 07:50 AM

1 reply to this topic
fullscreen safearea android

Best Answer Rob Miracle , 28 November 2018 - 09:09 AM

Until we can address safe zones on Android, you may need to detect if you're on an S8 or S9 and add some padding to your attempt to manually position the ads.

 

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 75 posts
  • Corona SDK

Hello,

 

I want my app to use the full screen on Android devices with rounded screens like S8 or S9.

The default background of my app is white, and it's running in "letterbox" mode. This works well on iOS (iPhone X), but on Android the app runs with black bars at the top and at the bottom.

 

I found this thread:

https://forums.coronalabs.com/topic/70798-enabling-samsung-s8-full-screen-mode/

 

The explained solution works, the app then uses the full screen.

However, the positioning of the AdMob Banner with "bottom" does not work correctly (it should be above the rounded edges of the screen but it is at the very bottom of the screen).

Manually placing the banner does not work either because display.actualContentHeigth and display.safeActualContentHeight return the same value (the value which should be display.actualContentHeigth).

It seems like the "safe" values are not supported on Android?

 

Is there any solution to this?

I'm using Corona Build 3432 on a Galaxy S9 with Android 8.0.

 

Best regards!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,997 posts
  • Corona SDK

  Best Answer

Until we can address safe zones on Android, you may need to detect if you're on an S8 or S9 and add some padding to your attempt to manually position the ads.

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: fullscreen, safearea, android