Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

4 replies 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

  • 76 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

  • 25,793 posts
  • Enterprise

  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: post.html]
#3

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 364 posts
  • Corona SDK

Hi, I'm testing on a new Xiaomi redmi note 6 pro device which has similar rounded corners and a central notch like the iPhoneX but it seems the solution proposed here: https://forums.coronalabs.com/topic/70798-enabling-samsung-s8-full-screen-mode/ does not help expanding the image to the top area where the notch is. Is there any thing else needed to make it work?



[TOPIC: post.html]
#4

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 364 posts
  • Corona SDK

Is there an update on this? We would like to release for Android and there are numerous devices with a notch now on Android. We cannot detect them by name. Can you implement support for cutout as indicated in this guide:

https://developer.android.com/guide/topics/display-cutout/


[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,793 posts
  • Enterprise

We are still working on the various Android build system updates, which gets us 64-bit support, Android 9 support, and other things. Once this is in place we can start looking at other API's that need updating.

 

Rob




[topic_controls]
[/topic_controls]

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