Problem description
Animation on views are not working in Android (Tested on iOS, working flawless).
Expected behavior
The animation happening.
Actual behavior
1.8.1: The program just ignores the animation. It just sits there.
1.9CI: It crashes (Related to TIMOB-7416).
Test Case
var win1 = Titanium.UI.createWindow({
backgroundColor:'#000'
});
var box = Ti.UI.createView({
backgroundColor : 'red',
height : '150',
width : '100'
});
box.addEventListener('click', function() {
//alert('Clicked');
var matrix = Ti.UI.create2DMatrix()
matrix = matrix.rotate(90);
matrix = matrix.scale(2, 2);
var a = Ti.UI.createAnimation({
transform : matrix,
duration : 2000,
autoreverse : true,
repeat : 3
});
box.animate(a);
});
win1.add(box);
win1.open();
Community Discussion
http://developer.appcelerator.com/question/131556/animation-in-andriod-app-not-working
Tested with 1.9.0.v20120207124634 on Droid 3 (2.3.4), Emulator 2.2 and Simulator 5.0