Your best option might be to use some css and target the screen diagonal
size:

@media (-flex-min-device-diagonal: 6in) {
        
        s|ActionBar s|Group#titleGroup s|Label.title {
                fontSize : 40;
        }
}

Or maybe you can create a top level variable and calculate the screen
diagonal when the app is created, and use that value to derive a multiplier
that you can use to size some objects with properties that are not affected
by css:

Number(MediaQueryParser.instance.flexDeviceDiagonal)/Capabilities.screenDPI
gives the diagonal inches of screen. I used mediaqueryparser because it will
have correct size even when debugging on computer.

And yet another option would be to use this screen diagonal size and set
some custom states like phonePortrait or phabletLandscape to further layout
control of the content.

Personally, I incorporate these 3 techniques in my current project that is
designed for android and ios devices, including phone, phablet, and tablet.



-----
.
--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Use-styles-for-another-applicationDPI-possible-tp9732p9745.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to