Adobe Air mobile:在选项卡式导航器应用程序中将 VIEW 标题设置为可见 false

发布于 2024-12-03 16:19:17 字数 2123 浏览 0 评论 0原文

我有 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 - 但这只能打开/关闭底部导航器选项卡 - 而不是视图标题。 如何关闭视图标题?


好的,它解决了 - http://devgirl.org/2011/05/23/flex-4-5-mobile-application-development-controlling-visibility-actionbar-tabs/

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

謌踐踏愛綪 2024-12-10 16:19:17

您必须将 actionBarVisible 设置为 false

You have to set actionBarVisible to false

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文