Titanium:打开窗口顶部的 ImageView
不知怎的,我无法设法让图像视图位于窗口顶部。这是我的代码:
var win = Titanium.UI.createWindow();
var startupView = Titanium.UI.createImageView({
image: 'iphone/Default.png',
opacity:1,
zIndex:20
});
var w = Titanium.UI.createWindow({
title:'Menu',
url:'menu.js',
zIndex: 1,
backgroundImage:'ui/bg.gif'
});
w.open();
win.add(startupView);
win.open();
基本上,我正在后台加载一些内容,完成后我会淡出“startupView”。当淡出时,我希望在其下方打开“w”窗口。我在这里缺少什么?
Somehow I can't manage to get an imageview to be on top of a window. This is my code:
var win = Titanium.UI.createWindow();
var startupView = Titanium.UI.createImageView({
image: 'iphone/Default.png',
opacity:1,
zIndex:20
});
var w = Titanium.UI.createWindow({
title:'Menu',
url:'menu.js',
zIndex: 1,
backgroundImage:'ui/bg.gif'
});
w.open();
win.add(startupView);
win.open();
Basically, I am loading something in the background, and upon finish I am fading out the "startupView". When faded out, I want to have the "w" window to be open underneath it.. What am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要添加startupView...
只需打开窗口...然后打开启动视图...然后在窗口加载完成后淡出startupView
dont add the startupView...
just open the window... then open the startup view... then fade the startupView out when the window is finished loading