Titanium Appcelerator钛导航窗口

Titanium Appcelerator钛导航窗口,titanium,appcelerator,titanium-mobile,appcelerator-titanium,Titanium,Appcelerator,Titanium Mobile,Appcelerator Titanium,你好,钛合金手机开发商 我对navigationWindow有一些问题,因为图片胜过千言万语: 正如您所看到的,我在navigationWindow中有一个蓝色的back按钮,作为内容有一个带图像的滚动视图: <Alloy> <Window> <ScrollableView id="scrollableView" showPagingControl="true" overlayEnabled="true" pagingControlColor="trans

你好,钛合金手机开发商

我对navigationWindow有一些问题,因为图片胜过千言万语:

正如您所看到的,我在navigationWindow中有一个蓝色的back按钮,作为内容有一个带图像的滚动视图:

<Alloy>
<Window>
    <ScrollableView id="scrollableView" showPagingControl="true" overlayEnabled="true" pagingControlColor="transparent" backgroundColor="black">
        <View id="view1">
            <ImageView class="fullBgImage"image="images/pubs/v2.png" />
        </View>
        <View id="view2">
            <ImageView id="imageview_1" image="images/pubs/pub_un.jpg" />
        </View>
        <View id="view3">
            <ImageView id="imageview_2" image="images/pubs/pub_deux.jpg" />
        </View>
        <View id="view4">
            <ImageView image="images/pubs/guide.png" />
        </View>
        <View id="view5" >
            <ImageView touchEnabled="false" image="images/pubs/start.png" />
        </View>
    </ScrollableView>
</Window>


谢谢您的帮助。

有关后退按钮标题颜色

在包含该窗口的NavigationWindow上使用

    <NavigationWindow platform="ios" tintColor="white">
        <Window    </Window>
    </NavigationWindow>

对于后退按钮标题颜色

在包含该窗口的NavigationWindow上使用

    <NavigationWindow platform="ios" tintColor="white">
        <Window    </Window>
    </NavigationWindow>

要使其全屏显示,只需将两个布尔属性
navBarHidden
fullscreen
设置为
true
即可查看以下代码:

<Window navBarHidden = "true" fullscreen="true">
  // Your other Views
</Window>

//你的其他观点

祝你好运,干杯

要实现全屏显示,只需将两个布尔属性
navBarHidden
fullscreen
设置为
true
查看以下代码:

".full-window": {
    fullscreen: true, // set to false if you want to show battery-signal status bar
    navBarHidden: true  // must be true to show manual view
}

".header": {
    top : 0,
    height: '64dp',
    backgroundColor: "#3000",
    zIndex : 2    // necessary to put your content view behind it
}
<Window navBarHidden = "true" fullscreen="true">
  // Your other Views
</Window>

//你的其他观点

祝你好运,干杯

嘿,谢谢你的帮助,tintColor效果很好,是的,我在视图中添加了背景色,这填充了整个屏幕,但图像没有,所以你是对的,这是因为图像比例。但是事件我将图像视图宽度设置为“Titanium.Platform.displayCaps.platformWidth”,宽度仍然不是填充所有设备的宽度,与宽度相同为100%。您需要同时设置宽度和高度,因为如果设置了宽度/高度,则其他属性将根据图像纵横比自动计算。我添加了进一步的答案。请检查并让我们知道结果。你好,谢谢,它工作得很好,我只有一个最小的问题,我更新了上面的帖子为您的新问题,只有一种方法可以做到这一点。在该窗口上将navbarHidden设置为false,并创建一个手动Ti.UI.View,其高度为64dp from top=0,并在其左边缘添加一个按钮。查看我的更新答案。嘿,谢谢你的帮助,tintColor效果很好,是的,我在视图中添加了背景色,这填充了整个屏幕,但图像没有,所以你是对的,这是因为图像比例。但是事件我将图像视图宽度设置为“Titanium.Platform.displayCaps.platformWidth”,宽度仍然不是填充所有设备的宽度,与宽度相同为100%。您需要同时设置宽度和高度,因为如果设置了宽度/高度,则其他属性将根据图像纵横比自动计算。我添加了进一步的答案。请检查并让我们知道结果。你好,谢谢,它工作得很好,我只有一个最小的问题,我更新了上面的帖子为您的新问题,只有一种方法可以做到这一点。在该窗口上将navbarHidden设置为false,并创建一个手动Ti.UI.View,其高度为64dp from top=0,并在其左边缘添加一个按钮。请参阅我的更新答案。谢谢,您是老板。@user44321您现在将如何显示“后退”按钮?你有没有试过这个方法?我建议您在为不同主题取消标记已被接受的答案时使用单独的问题,因为当其他用户现在访问此问题时,他们会对此答案如何解决这两个问题感到困惑。谢谢,您是老板。@user44321现在您将如何显示“后退”按钮?你有没有试过这个方法?我建议您在为不同主题取消标记已被接受的答案时使用单独的问题,因为当其他用户现在访问此问题时,他们会对此答案如何解决这两个问题感到困惑。请不要编辑已回答的问题来问其他问题。相反,在这些情况下,请提出新问题。请不要编辑已回答的问题以提出其他问题。相反,在这些情况下,要问一个新问题。
".full-window": {
    fullscreen: true, // set to false if you want to show battery-signal status bar
    navBarHidden: true  // must be true to show manual view
}

".header": {
    top : 0,
    height: '64dp',
    backgroundColor: "#3000",
    zIndex : 2    // necessary to put your content view behind it
}