Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14005

Android: Animation with transform not working

    Details

      Description

      If you run the sample and tap on the red rectangle, it should animate from on position to another.
      It works great on iOS.
      It doesnt work on Android.

      var win = Ti.UI.createWindow({
          backgroundColor:'gray'
      });
       
      var isTransformed = false;
       
      var view = Ti.UI.createView({
      	width:100,
      	height:150,
      	backgroundColor:'red'
      })
       
      view.addEventListener('singletap', function(){
      	if (isTransformed) {
      		view.animate({transform:Ti.UI.create2DMatrix(), duration:200});
      	}
      	else {
      		view.animate({transform:Ti.UI.create2DMatrix().translate(-50, 40).scale(0.2,0.4), duration:200});
      	}
      	isTransformed = !isTransformed;
      })
       
      win.add(view);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                clathrop Carter Lathrop
                Reviewer:
                Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16591
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration