I’m new to Corona. I’m trying to create an app that handles different screen sizes the way I want it to. Basically, what this means is that I want to manually calculate and position elements so I don’t have to stretch them or letterbox my app in different screen sizes.
I know the documentation recommends making one app for 320x480, but I’d rather just figure this all out in my program (at this point).
My issue is that I can easily get the display resolution. However, I don’t know how to get the pixel density of a given display. So, for example, the iphone 4 has 2x the pixel density of the iPhone 3. Is there a way to find this?
I specifically need this because of an apparent bug in display.statusBarHeight. The value is the same no mater if I’m using a retina display or not. As such, I can’t reliably place elements directly at the bottom of the status bar. If I knew that I was on a display with a 2x density I could scale this item’s position accordingly.
Any tips?
Thanks,
Doug [import]uid: 152958 topic_id: 27037 reply_id: 327037[/import]
[import]uid: 52491 topic_id: 27037 reply_id: 109878[/import]