It is sometimes desirable to constrain your application layout to a specific aspect ratio, landscape, or portrait. When building Android projects using the Flex framework, it is a simple matter to accomplish this.
We can freeze a particular aspect ratio for our application by modifying the AIR application descriptor file:
XMLfile is created. This file includes a node dedicated to the application
initialWindowconfiguration. It will appear similar to the following code:
<initialWindow> <autoOrients>true</autoOrients> <fullScreen>false</fullScreen> <visible>true</visible> <softKeyboardBehavior>none</softKeyboardBehavior> ...