GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-18T21:37:38.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.0.0, Release 3.1.0 |
Fix Version/s | 2013 Sprint 08 API, Release 3.2.0 |
Components | Android |
Labels | exalture, insight, module_animation, parity, qe-testadded |
Reporter | Eduardo Gomez |
Assignee | Sunila |
Created | 2012-12-07T17:21:38.000+0000 |
Updated | 2014-06-19T12:43:31.000+0000 |
Problem
It looks like our "Simple Animation Applied to a View" doesn't play nice in Android.
Tested on
Razr 2.3.5
iOS 6 simulator
Docs
http://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.Animation
Simple sample
var win = Titanium.UI.createWindow({
backgroundColor : '#FFF',
});
var view = Titanium.UI.createView({
backgroundColor : 'red'
});
var animation = Titanium.UI.createAnimation();
animation.backgroundColor = 'black';
animation.duration = 3000;
var animationHandler = function() {
animation.removeEventListener('complete', animationHandler);
animation.backgroundColor = 'orange';
view.animate(animation);
};
animation.addEventListener('complete', animationHandler);
view.animate(animation);
win.add(view);
win.open();
The problem reproduces with release 3.0.2 and master release 3.1.0 tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 iOS iPhone Simulator: iOS SDK version: 6.0 It works fine on IOS iphone simulator
Added backgroundcolor propertyaccessor annotation https://github.com/appcelerator/titanium_mobile/pull/4183
After the fix, the background color animates but does not work the same as iOS. The color changes from red to black smoothly but at the end of the first animation, the background color goes back to red. And then it changes to orange. This issue has been already filed in TIMOB-6852 and TIMOB-12141. So resolve this ticket as Fixed.
Verified fixed. TiSDK 3.2.0.v20131017152001 CLI 3.2.0 Titanium Studio 3.2.0.201310152326 Closing.