Good news.

I have just completed support for @media os-version for Android.

https://issues.apache.org/jira/browse/FLEX-33949

Committed and pushed to develop.

I also added support for 3 part version numbers (such as 4.1.2).
The only constraint is that it needs to be quoted, or the mxmlc compiler will 
mess it.

So the following sequences are now valid:

@media (os-platform: "android") AND (min-os-version: "4.1.2") {

    /* JELLY BEAN SKINS */
 }

@media (os-platform: "ios") AND (min-os-version: 7) {

    /* IOS 7  skins */
 }

I have successfully tested on Samsung Tab 3 7" (with Android 4.1.2) 
And would appreciate if folks can test on other Android devices.

Om, you could also test your new Android skins ;-)

Maurice 

-----Message d'origine-----
De : Maurice Amsellem [mailto:maurice.amsel...@systar.com] 
Envoyé : samedi 15 mars 2014 23:41
À : dev@flex.apache.org
Objet : RE: Building new skins for Android 4.x and iOS7

I have checked FlexVersion, but it's really dedicated to Flex versions.

Here, 4.1.2 refers to Android version (Jelly Bean IIRC) but could be any OS.

Sorry for the confusion.

I think I will create a new class OSVersion , and use it in the MediaQueryParser

If that works, it will open up new possibilities in media css ( such as 
NumberUnit)

Maurice 

-----Message d'origine-----
De : Justin Mclean [mailto:jus...@classsoftware.com] Envoyé : samedi 15 mars 
2014 23:13 À : dev@flex.apache.org Objet : Re: Building new skins for Android 
4.x and iOS7

Hi,

> Currently, MQP supports min- and max- for number properties only.
> So I had to turn version strings to numbers to allow comparison The 
> version number for X.Y.Z is X + Y/100 + Z/10000.

There already a set of method with does this for the Flex SDK. May be possible 
to reuse?  check FlexVersion.as in framework.

Justin

Reply via email to