0

我想为一个窗口设置动画,使其向右滑动打开,向左滑动关闭。我怎样才能做到这一点 ?

我有以下代码,但 ti 不起作用:

 var textWin = Ti.UI.createWindow({
  width:400,
  height:400,
  backgroundColor:'white',
  borderColor:'blue',
  borderRadius:10,
  left:0,
  right:0,
  bottom:600,
});

var slideRightopen = Titanium.UI.createAnimation();
slideRightopen.right = 320; 
slideRightopen.duration = 200;


var slideLeftClose = Titanium.UI.createAnimation();
slideLeftClose.right = 0;
slideLeftClose.duration = 300;
4

1 回答 1

0

将底部设置为600将在屏幕外显示窗口

于 2013-08-04T13:12:17.360 回答