[TIMOB-7688] Android: Animation: button makes view blinking on 2.x devices
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-01T18:25:35.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0, Release 3.1.0 |
Fix Version/s | Release 3.2.0 |
Components | Android |
Labels | insight, module_animation, parity, qe-manualtest |
Reporter | Ping Wang |
Assignee | Ingo Muschenetz |
Created | 2012-02-16T13:13:53.000+0000 |
Updated | 2014-08-08T17:41:09.000+0000 |
Description
Sample code:
var win = Ti.UI.createWindow({
//fullscreen: true,
backgroundColor: 'blue'
});
var bkgdView = Ti.UI.createView({
width: '200dp',
height: '200dp',
backgroundColor: 'white'
});
var fromColor = 'green';
var toColor = 'red';
var v = Ti.UI.createView({
width: '100dp',
height: '100dp',
backgroundColor: fromColor
});
v.addEventListener('click', function() {
v.animate({
backgroundColor: toColor,
duration: 500
});
});
var b = Ti.UI.createButton({
title: 'Animate',
bottom: '10dp',
left: '10dp'
});
b.addEventListener('click', function() {
v.animate({
backgroundColor: toColor,
duration: 500
});
});
bkgdView.add(v);
win.add(bkgdView);
win.add(b);
win.open();
Steps to reproduce:
1. run the above sample code (either LW or HW window) on 2.x devices.
2. click the button "Animate".
Actual result:
Part of the white view is blinking during the animation.
Expected result:
The white view should not blink.
For comparison, if clicking the green view, the white view stays white without blinking during the animation. (TIMOB-7412)
Button makes blinking on 2.x (Tested on emulator) but It cannot reproduce with higher versions (4.x) tested on: Titanium Studio, build: 3.0.1.201212181159 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
This has been fixed in 3.2.0
Verified the fix with: Appc-Studio: 3.2.0.201310181700 Sdk:3.2.0.v20131018154951 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:Samsung Note(v 2.3,6),iphone5(v7) Xcode: 5 Animation works fine no blinks of the view found while animating