Thomas McGrath wrote:
DisplayMetrics.density is the "logical density of the display", i.e. a value of 0.75
(ldpi), 1.0 (mdpi), 1.5 (hdpi) or 2.0 (xhdpi). Multiply this value by 160 to get the "screen
density expressed as dots-per-inch", i.e. a value of 120 (ldpi), 160 (mdpi), 240 (hdpi) or 320
(xhdpi).
But this can't be used as a multiplier of pixels like the retina result, or can
it? And if so, are there really that many retina/pixel doubled displays out
there?
I double the size of my standard livecode controls to get a retina pixel so
should I be multiplying the density result to get a true scale for standard
livecode controls? Is this the size and width, height of a device or the
virtual screen size of a devices retina or not screen?
I believe LC 5.5.3's new mobilePixelDensity function will provide the
specificity you're looking for.
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode