Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

With the release of Apache Flex 4.14.0, we have introduced new mobile skins targeting iOS7+ and Android 4+ versions.  Here is a brief overview on how to use them in your project.  

...

No code change is required to use these new skins.

Automatic skins selection

The Flex SDK will detect the OS O/S type (iOS vs. Android) and the version of the OS O/S and display the correct skins during runtime.  The The skins will automatically be applied based on the OS detected O/S and version.  No code change is required to use these new skins.

Although the skins show up on the mobile device, you will not be able to see them on the AIR Simulator because , by default the AIR Simulator does not set a OS O/S Version.  To To see the iOS7+ and Android 4+ skins on the AIR Simulator, follow these steps:.

Viewing the iOS7 skins in the AIR Simulator

To see the iOS7+ mobile skins in the AIR Simulator, add this compiler directive:

-includes=mx.utils.IOSPlatformVersionOverride
 

Viewing the Android 4.x skins in the AIR Simulator

To see the Android4+ mobile skins in the AIR Simulator, add this compiler directive:

-includes=mx.utils.AndroidPlatformVersionOverride

Using the legacy mobile theme

In case If you want to continue using the old , legacy mobile theme/skins,  add add this compiler directive:


-includes=mx.utils.LegacyMobileThemeOverride