Array

Other Configuration Settings

Must Read

Admin
Admin
Just post!

When creating a new Flex Mobile application, there are a few additional settings that you can choose to configure. These include Automatically reorient; Full screen; and Automatically scale application for different screen densities. Figure 3-3 shows these options.

Additional configuration settings

Automatically Reorient

This option is set to true automatically, unless you uncheck the box during your project creation. Setting this to true will allow the device to use its accelerometer to automatically switch between portrait and landscape.

This property can be edited at any time within the application’s configuration file. This setting can also be changed programmatically while the application is running

<autoOrients>false</autoOrients>

Full Screen

Checking this box during your project creation will force your application to launch in full screen mode. By default, this is set to false.

This property can be edited at any time within the application’s XML configuration file. This setting can also be changed programmatically while the application is running

<fullScreen>false</fullScreen>

Automatically Scale Application for Different Screen Densities

Checking this box will allow your application to automatically scale for different screen densities. It will also allow you to set the default applicationDPI which will be written to the main application file. The options for this value are 160, 240, or 320:

<s:Application xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:s=”library://ns.adobe.com/flex/spark”
applicationDPI=”320″>

Aspect Ratio

You have the option to force an application to only run in portrait or landscape mode. You can accomplish this by uncommenting the <aspectRatio> node within the application’s XML configuration file, and setting its value to either landscape or portrait. This setting can also be changed programmatically while the application is running

<aspectRatio>landscape</aspectRatio>

 

- Advertisement -

Latest News

Unpacking Fixed Rate HELOCs: The Good, the Bad, and Everything In Between

Today, we're diving deep into the world of Fixed Rate Home Equity Lines of Credit (HELOCs). If you're a...
- Advertisement -

More Articles Like This

- Advertisement -