我的TabbedViewNavigatorApplication底部有一些viewnaviagtor,所有视图的屏幕顶部都有标题。
如何从应用程序中删除标题 - 如何设置可见的真/假? 如何在横向/纵向视图上操纵此可见性?
我希望在横向模式下设置可见。
<?xml version="1.0" encoding="utf-8"?>
<s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
initialize="appInit(event)"
splashScreenImage="@Embed('images/st_logo.png')"
splashScreenMinimumDisplayTime="300"
>
<s:ViewNavigator id="viewMap" icon="@Embed('images/ico_map.png')" click="viewMap_clickHandler(event)" width="100%" height="100%" firstView="views.MapView"/>
<s:ViewNavigator id="viewConfig" icon="@Embed('images/ico_tool.png')" width="100%" height="100%" firstView="views.ConfigView"/>
<s:ViewNavigator id="viewSim" icon="@Embed('images/ico_sim.png')" width="100%" height="100%" firstView="views.SimView"/>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
在视图上:
<?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="Mapa"
destructionPolicy="never"
xmlns:maps="pl.com.tiger.herringMobile.components.maps.*"
tabBarVisible="{actionBarVis}"
middleClick="toggleActionBar()"
menuKeyPressed="toggleActionBar()"
initialize="viewMapa_initializeHandler(event)" xmlns:buttons="pl.com.tiger.herring.components.buttons.*">
我可以设置tabBarVisible - 但这只会打开/关闭底部导航器标签 - 而不是视图标题。 如何关闭视图标题?
答案 0 :(得分:0)
您必须将actionBarVisible
设为false