Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7517] Android: Simple animation is not working in Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:28:59.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.1
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsmodule_animation, parity, qe-testadded
ReporterMauro Parra-Miranda
AssigneePing Wang
Created2012-02-02T09:56:26.000+0000
Updated2012-06-29T14:24:29.000+0000

Description

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

Comments

  1. Natalie Huynh 2012-02-07

    Tested with 1.9.0.v20120207124634 on Droid 3 (2.3.4), Emulator 2.2 and Simulator 5.0

JSON Source