Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8091] Android: Animation with 'autoreverse' does not work on Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-07-12T06:29:03.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 Core
ComponentsAndroid
Labelsmodule_animation, parity, qe-testadded
ReporterHieu Pham
AssigneeBill Dawson
Created2012-03-19T15:42:08.000+0000
Updated2012-07-12T13:17:10.000+0000

Description

autoreverse property, when passed into view.animate, has no effect whatsoever. Testing step: 1. Run this code in iOS and Android:
var win = Titanium.UI.createWindow();

//
// REUSABLE ANIMATION WITH TRANSFORM
//
var t = Ti.UI.create2DMatrix();
t = t.rotate(90);


//
// TOP LEFT
//
var view1 = Titanium.UI.createView({
	backgroundColor:'#336699',
	top:10,
	left:220,
	height:50,
	width:50
});
win.add(view1);

var topLeft = Titanium.UI.createButton({
	title:'Top Left',
	height:40,
	width:200,
	top:10,
	left:10
});

topLeft.addEventListener('click', function()
{
	view1.animate({
        transform:t, 
        duration: 1000, 
        //anchorPoint: {x:0, y:0},
        autoreverse: true
    });
});

win.add(topLeft);
win.open();
2.Observe result in iOS (correct behavior) vs Android.

Attachments

FileDateSize
app.js2012-06-08T16:23:11.000+00001330

Comments

  1. Paul Dowsett 2012-05-16

    Vishal, shall we document this, or will it be fixed by the 2.1.0 release?
  2. Neeraj Gupta 2012-05-16

    Paul - We would fix this behavior.
  3. Bill Dawson 2012-06-08

    testing notes

    Use the attached file app.js (you can also try the Javascript code pasted into the ticket description above, but you'll have more fun with the app.js :) ). Run it in iPhone and Android, make sure the behavior is the same.
  4. Bill Dawson 2012-06-08

    Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/2366
  5. Tamila Smolich 2012-06-23

    Closing as fixed. Verified with: Titanium Studio, build: 2.1.0.201206221045 Titanium SDK: 2.1.0.v20120622174154 Device: Samsung Galaxy (3.2)
  6. Shyam Bhadauria 2012-07-12

    Re-opening to edit label

JSON Source