Recreating this animation in Titanium SDK

前端 未结 4 442
醉酒成梦
醉酒成梦 2021-02-04 22:08

I was previously developing my application in Xcode but decided to move over to Titanium to allow for Android development.

I\'m still getting used to Titanium so I\'m r

4条回答
  •  终归单人心
    2021-02-04 23:04

    You can use this code to flip window in ios and android both.

    Create two animation objects

    var anim_minimize = Titanium.UI.createAnimation({width:0,duration:500});
    var anim_maximize = Titanium.UI.createAnimation({width:320,duration:500});
    

    and animate TabGroup on button click will create same effect as FLIP.

    So

    tabGroup.animate(anim_minimize);
    
    setTimeout(function(){
    
    tabGroup.animate(anim_maximize);
    
    },500);
    

    Try this code.This will generate same effect as flip animation both in iOS and android.

    I hope this will help us.

提交回复
热议问题