[TIMOB-8091] Android: Animation with 'autoreverse' does not work on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-12T06:29:03.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-12 Core |
Components | Android |
Labels | module_animation, parity, qe-testadded |
Reporter | Hieu Pham |
Assignee | Bill Dawson |
Created | 2012-03-19T15:42:08.000+0000 |
Updated | 2012-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
File | Date | Size |
---|---|---|
app.js | 2012-06-08T16:23:11.000+0000 | 1330 |
Vishal, shall we document this, or will it be fixed by the 2.1.0 release?
Paul - We would fix this behavior.
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.Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/2366
Closing as fixed. Verified with: Titanium Studio, build: 2.1.0.201206221045 Titanium SDK: 2.1.0.v20120622174154 Device: Samsung Galaxy (3.2)
Re-opening to edit label