Animation Not Firing till user Clicks screen - Android

You must Login before you can answer or comment on any questions.

I am having a problem with animating a view off screen, changing a child label view, then animating the view back onto the screen.

It is the exact issue posted in Appcelerator's Jira (TIMOB-6658), https://jira.appcelerator.org/browse/TIMOB-6658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs

It works great on iOS but not on Android. The problem is the callback of the second animation will never fire. I've tried using the animation 'complete' event listener, but still get the same results?

Can anyone from appcelerator tell me if this issue is ever going to be fixed or has anyone else found a solution?

Currently using Titanium 2.1

Thanks!

NOTE: The returnAni() method gets called everytime, but the animate method does not get called until I click on a view or the android 'back' hardware button???

function returnAni(){
    //DO SECOND ANIMATION TO BRING TEXT BACK...
    Ti.API.info('In Return ANI START');
    self.headerCont.animate({
        right: 15,
        duration: 145
    },function(){
        Ti.API.info('In Return Complete 1');
        self.headerCont.right = aniTxtDist;
        Ti.API.info('In Return Complete 2');
    });
    Ti.API.info('In Return ANI END');
}
 
//DO FIRST ANIMATION TO SEND TEXT OFF SCREEN...             
self.headerCont.animate({
    right: (self.headText.rect.width * -1) - 25,
    duration: 145
},function(){
    self.headerCont.right = (self.headText.rect.width * -1) - 25;
 
    var headerText = "New Header Text";
    self.headText.text = headerText;
    self.headText.width = Ti.UI.SIZE;
 
    self.headerCont.width = Ti.UI.SIZE;         
    self.headerCont.right = (self.headText.rect.width * -1) - 25;
 
    returnAni();
});

— asked 10 months ago by Tate U.
0 Comments

Your Answer

Think you can help? Login to answer this question!