airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
200 stars 11 forks source link

notch area display in android mobile #2543

Closed Densing1990 closed 1 year ago

Densing1990 commented 1 year ago

Before reporting this issue:

Problem Description

Describe your problem in detail. Include the following information:

Steps to Reproduce

Tell us how this issue can be reproduced. Seriously: if you want this issue to be fixed, this is the part you really need to get nailed.

Give us a minimal example:

Known Workarounds

Just in case others run into this – do you happen to know of a workaround? Otherwise, just remove this section altogether.

ajwfrost commented 1 year ago

@Densing1990 I can't see any description of the error here, it looks like this is just the raw template..? I think your edits got lost :-(

Densing1990 commented 1 year ago

Hi, I need to display full screen mode like edge-to-edge, already I was using this code "stage. ScaleMode = StageScaleMode. EXACT_FIT;" but display cutout on top corner, I shared image for reference, anyone can help me? mobile display cutout

Densing1990 commented 1 year ago

mobile display cutout

@Densing1990 I can't see any description of the error here, it looks like this is just the raw template..? I think your edits got lost :-(

Sorry for my mistake, I need to display full screen mode like edge-to-edge, already I was using this code "stage. ScaleMode = StageScaleMode. EXACT_FIT;" but display cutout on top corner, I shared image for reference mobile display cutout , can you help me?

ajwfrost commented 1 year ago

Those presumably aren't screenshots from something with 'exact fit' since that would result in major distortions when you switch from portrait to landscape ... I think 'no scale' is the only mode where the stage display resizes to match the actual screen. The above looks a bit like 'no border' i.e. it's cropped part of the image rather than having 'show all' which displays the full stage and adds borders where the aspect ratios don't match..

The other things to ensure are that you have the fullScreen setting to 'true' in your app descriptor file, and also - unless you're using a fairly recent AIR SDK - there's an aspect ratio that you may have to increase for Android phones that are more than the default 16:9. -> let me know if you need more details on these ones.. (and, which version of AIR SDK are you using?)

thanks

Densing1990 commented 1 year ago

@ajwfrost Thanks! For your suggestion, but already I was using fullScreen mode only and currently using the AIR SDK VERSION 33.1.1.935. I have shared my descriptor image for your reference. Thanks in advance. descriptor

ajwfrost commented 1 year ago

Version 33.1.1.935 will already have the high aspect ratio value in it .. so, the "stage" area should be covering the full screen and you shouldn't see the status bar etc.. you can perhaps try changing your stage colour to something bright/unusual just to try to see what's actually considered as part of this, vs the operating system background. Then it may just be a case of the content having to adapt -> perhaps try setting stage.scaleMode = "noScale"; to see if that improves it?

Densing1990 commented 1 year ago

@ajwfrost Thanks for your support finally I solved this issue using Application ANE.