Flex手机项目 - 设置顶部操作工具栏
操作栏(action bar)是Flex移动应用程序顶部默认出现的可视化标题区。其包含三个部分:

(1)<s:navigationContent>:左侧导航的内容区域
(2)<s:actionContent>:右侧可操作内容的区域
(3)<s:titleContent>:中间的标题内容区域
注意:既可以为每一个视图定制操作栏,也可以在主应用文件中定义一个统一的操作栏。
示例如下:
<?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.MMView" applicationDPI="160"> <s:navigationContent> <s:Button label="首页"/> </s:navigationContent> <s:titleContent> <s:TextInput width="100%" prompt="请输入..."/> </s:titleContent> <s:actionContent> <s:Button label="查询"/> </s:actionContent> </s:ViewNavigatorApplication>效果图如下:
