Mobile Portrait AspectRatio

Hello,

I’m making an android app and I can’t figure out how to set my view to portrait, I mean I did set it on advanced settings to set it as portrait but the aspect ratio isn’t working fine for every phone.

I want to find a way to set it to be right for any device screen or maybe there’s an easier way.
The widgets I managed to make them portrait too so I solved that.
The issue is black rectangles on top and bottom for the camera view, since the aspect ratio doesn’t cover the screen, in some devices those are smaller and on another one it may be bigger…

I guess maybe you can try to use Safe Zone in your widget?

the issue is the camera view which doesn’t capture all the world but only for that aspect ratio, but every phone has a slightly different one

try to set maximum supported aspect ratio as 2.4?