Android Question How to set Android screen Safe Area

watesoft

Active Member
Licensed User
Longtime User
Just like iphoneX ,How to set Android screen Safe Area?
 

Attachments

  • ANDROID.jpg
    ANDROID.jpg
    38.4 KB · Views: 318

watesoft

Active Member
Licensed User
Longtime User
What is Android screen Safe Area?

There is a gap at the top of some android phones screen,If the app is full screen,then view is covered by gap. In b4i,we can use Page1.SafeAreaInsets to adjust the position of view.but in B4A,how to do it?
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
Thanks MarkusR,it looks more trouble than B4I,I'm planning to set app no full screen.
or full screen without cutout areas mentioned here
Never render content in the display cutout area
With LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER, the window is never allowed to overlap with the cutout area.

This mode should be used with windows that transiently set View.SYSTEM_UI_FLAG_FULLSCREEN or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION to avoid performing another layout of the window when the flag is set or cleared.

See examples of LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER below:
 
Upvote 0
Top