Adobe Air mobile:在选项卡式导航器应用程序中将 VIEW 标题设置为可见 false
我有 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 - 但这只能打开/关闭底部导航器选项卡 - 而不是视图标题。 如何关闭视图标题?
I have TabbedViewNavigatorApplication with some viewnaviagtor on the bottom, also all views have title on the top of the screen.
How to remove title from application - how to set visible true/false?
How to manipulate this visibility on landscape/portrait view?
I want to set visible off on landscape mode.
<?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>
on view:
<?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.*">
I can set tabBarVisible - but this only turn on/off bottom navigator tabs - not the view title.
How to turn off view title ?
Ok, it solved - http://devgirl.org/2011/05/23/flex-4-5-mobile-application-development-controlling-visibility-actionbar-tabs/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将
actionBarVisible
设置为 falseYou have to set
actionBarVisible
to false