我正在尝试在 Appcelerator Titanium 中遵循一些关于 android 窗口动画的指南,但它们实际上都没有提到轻量级与重量级的窗口。
无论如何,最简单的例子不起作用:
// in mainWindow do:
var winInfoView = Ti.UI.createWindow({
title : "info",
url : 'infoview.js',
// notice I don't set the window fullscreen or modal property so that the window remains lightweight
});
winInfoView.open({
animated : true
});
更复杂的也没有:
// in mainWindow do:
var winInfoView = Ti.UI.createWindow({
title : "info",
url : 'infoview.js',
// notice I don't set the window fullscreen or modal property so that the window remains lightweight
});
var slideLeft = Ti.UI.createAnimation();
slideLeft.left = 0;
slideLeft.duration = 300;
winInfoView.open(slideLeft);
那么,是否可以为轻量级窗口的打开设置动画?如何?