Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5: Developing for Multiple Screen Sizes > ADAPTING CONTENT TO STAGE SIZE

ADAPTING CONTENT TO STAGE SIZE

One of the main aims of multiple screen development is to enable an application to adapt itself to different screen sizes. This doesn't necessarily need to include every part of the application but some assets will have to be resized to make them more visible.

Using the StageScaleMode and StageAlign Classes

The StageScaleMode and StageAlign classes can be used together to provide values to set the scale mode property stage.scaleMode and the alignment property stage.align on the Stage object of an application.

The StageScaleMode class has the following static constants:

  • StageScaleMode.EXACT_FIT: To specify that content in the application fills the visible area of the stage
  • StageScaleMode.NO_BORDER: To ensure that content in the application fills the entire stage when the stage is scaled

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint