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

Android: Animation: An animated object does not animate correctly the second time

    Details

      Description

      An animated view object does not animate properly the second time.

      This is a regression. The behavior does not happen on 2.0.2

      Steps to Reproduce:
      1. Create an application with the Sample code for animation, as given below
      2. Run the application
      3. Click on Red View. The red view animates.
      4. After the animation is completed, again click on the Red view

      Actual Result: The red view scales for once and stays

      Expected: The red view should animate each time it is clicked

      Sample Code

      var win = Ti.UI.createWindow({
      	backgroundColor:'green'
      });
       
      var box = Ti.UI.createView({
      			backgroundColor : 'red',
      			height : '150',
      			width : '100'
      		});
       
      		box.addEventListener('click', function() {
      			var matrix = Ti.UI.create2DMatrix()
      			
      			matrix = matrix.scale(2, 2);
      			var a = Ti.UI.createAnimation({
      				transform : matrix,
      				duration : 2000,
      				autoreverse : true,
      				repeat : 3
      			});
      			box.animate(a);
      		});
      		win.add(box);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              billdawson Bill Dawson
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration