In the following code, I have added a simple Label. You can see the results in Figure 2-2. info Figure 2-1. Layout options Figure 2-2. info View-Based Application The View-Based Application adds the concept of a navigator, which is a built-in navigation framework built specifically for use within mobile applications. The navigator will manage the screens within your application. 5 results in the generation of two files. These files are the main application file as well as the default view that will be shown within your application.
These events are important for application memory conservation. VIEW_ACTIVATE is dispatched when the view has been activated. VIEW_DEACTIVATE is dispatched when the view has been deactivated. VIEW_DEACTIVATE is dispatched when the view is about to be deactivated. Calling preventDefault() will cancel the screen change. Although this life cycle is great for keeping the application’s memory usage to a minimum, the default behavior to deactivate a view also destroys any data associated with that view.
Developing BlackBerry Tablet Applications with Flex 4.5 by Rich Tretola