With the release of Apache Flex 4.14, we introduced new mobile skins targeting iOS7+ and Android 4+ versions. No code change is required to use these new skins.

Automatic skins selection

The Flex SDK will detect the O/S type (iOS vs. Android) and the version of the O/S and display the correct skins during runtime. The skins will automatically be applied based on the detected O/S and version.

Although the skins show up on the mobile device, you will not be able to see them on the AIR Simulator because the AIR Simulator does not set a O/S Version. 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

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


-includes=mx.utils.LegacyMobileThemeOverride
  • No labels