You may want to use the ViewNavigator
structure and functionality of the ViewNavigatorApplication
container, but simply want to hide the ActionBar
in a specific application View.
Set the View actionBarVisible
property to true
. The following example shows how to toggle the ActionBar
off and on for a particular View
based on a button click:
1. Define a new Flex mobile view-based application:
<?xml version="1.0" encoding="utf-8"?> <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.MainHomeView"> </s:ViewNavigatorApplication>
2. Create a new MXML file called
MainHomeView.mxml
within aviews
package that will define our primary view for this application:<?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"> <...