DUAL mobile apps
Monte Goulding
monte at sweattechnologies.com
Fri Apr 19 16:22:05 EDT 2013
On 20/04/2013, at 3:24 AM, Thomas McGrath III <mcgrath3 at mac.com> wrote:
> -- For Android the mobilePixelDensity() is not a reliable way of scaling since the Display Metrics returned only report density and not width or height differences from the original development size and as such doesn't work correctly when resizing as the scale factor. Since the width or height is not doubled in most cases and yet MPD can return a 2 on a higher density device but the widths and heights of those devices may not be doubled etc.
Hmm... You need to separate pixel density scaling from layout management. mobilePixelDensity is only about the pixel density and has nothing to do with the aspect ratio. The scaling only needs to happen once at startup but the layout management may need respond to orientation changes etc so resizeStack and preOpenCard...
--
Monte Goulding
M E R Goulding - software development services
mergExt - There's an external for that!
More information about the use-livecode
mailing list