[TIMOB-17461] Android: Animation bug for using border on imageView on Ti SDK 3.2.3
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-20T18:46:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.3.0, Release 3.4.0 |
Components | Android |
Labels | android, module_animation, qe-manualtest |
Reporter | Michael Mathews |
Assignee | Ingo Muschenetz |
Created | 2014-07-28T06:37:35.000+0000 |
Updated | 2014-08-22T05:50:26.000+0000 |
Description
The image is suppose to move from point A to point B but with a border added to the image, the image moves down and disappears behind something that isn't there...
Test code as follows (isolated from working project), one image has a border the other doesn't... both images use the same animation
var window = Titanium.UI.createWindow({});
var congrats = Titanium.UI.createImageView({
top: 200,
left:10,
width: 100,
height: 80,
image:'images/congratsimage.png',
});
window.add(congrats);
var congratsalt = Titanium.UI.createImageView({
top: 200,
width: 100,
right: 10,
height: 80,
image:'images/congratsimage.png',
borderRadius : 10,
borderColor : "#000000",
borderWidth : 5,
});
window.add(congratsalt);
var animation = Titanium.UI.createAnimation({
top: 50,
duration:1000,
autoreverse : true,
curve:Titanium.UI.ANIMATION_CURVE_LINEAR,
});
var butStart = Titanium.UI.createButton({
title : 'START',
font : {
fontSize : 32
},
color : '#ffffff',
borderRadius : 10,
borderColor : "#ffffff",
borderWidth : 5,
backgroundImage: 'none',
top: 400,
width: 200,
height: 50,
});
window.add(butStart);
butStart.addEventListener('click', function () {
congrats.animate(animation);
congratsalt.animate(animation);
});
window.open();
Hi, Can you please try to use SDK 3.3.0GA, see whether this problem is there. Also I tried SDK 3.2.3GA, there is a total different behaviours. With SDK 3.3.0 --The animation works well. With SDK 3.2.3 --For Android 4.2.2, the image with border do not move at all. --For Android 2.3.6, the image with move down like you mentioned. Regards, Shuo
Hi Shuo, Thank you for looking into this issue. I tried the test app using 3.3.0 as you suggest and it gave the desired results on both my Galaxy S2 running Android version 4.1.2 and also on the emulator running Android 2.3.3. Michael Mathews
Hi, Thank you for your report. I will forward this ticket to engineer team to take care of this problem in SDK 3.2.3. For now, you'd better run your app in SDK 3.3.0 Regards, Shuo
Cannot reproduce in Titanium SDK version 3.4.0 master, 3.3.0.GA Issue reproduces in Titanium SDK version 3.2.3.GA Titanium Studio, build: 3.3.0.201407100905 Titanium Command-Line Interface CLI version 3.3.0, Android device : Motorola Moto G, Android version : 4.4.4
Verified the fix. The animation works as expected & the view with the border does not disappear. Closing. Environment: Appc Studio : 3.4.0.201408180158 Ti SDK : 3.4.0.v20140819094113 Mac OSX : 10.8.5 Alloy : 1.5.0-dev CLI - 3.4.0-dev Code Processor: 1.1.1 Nexus 5 - android 4.4.4
Cannot reproduce in Titanium SDK version 3.4.0 master, 3.3.0.GA Issue reproduces in Titanium SDK version 3.2.3.GA Titanium Studio, build: 3.3.0.201407100905 Titanium Command-Line Interface CLI version 3.3.0, Android emulator : Android version :2.3.3