[TIMOB-10112] Android: Views: A view animated to change position shows a trail while reversing
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-14T16:28:32.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Release 3.2.0 |
Components | Android |
Labels | core, insight, module_animation, qe-and070112, qe-nfc, qe-testadded |
Reporter | Satyam Sekhri |
Assignee | Allen Yeung |
Created | 2012-07-24T04:53:42.000+0000 |
Updated | 2014-02-21T10:48:29.000+0000 |
Description
A view that is animated with a change in position, shows a trail back to the original position during reversal of animation.
This is not a regression. The reversal of animated view did not work in 2.1.0
Steps to Reproduce:
1. Create an app with code below
2. Lauch the app
3. Click on the blue view
Actual: The blue view animated to a new position and then reverses back. During reverse it shows a trail of the path followed for reversal (Refer to attached screenshot)
Expected: The animation reversal should be smooth and should not show a reverse trace
var win = Ti.UI.createWindow({
backgroundColor : 'white',
exitOnClose : true
});
var viewArgs = {left: 10, top: 0, height: 100, width: 100, backgroundColor: "blue"};
translate = Ti.UI.createView(viewArgs);
translate.addEventListener("click", function() {
translate.animate({duration: 500, left: 40, top: 10, autoreverse: true});
});
win.add(translate);
win.open();
Attachments
File | Date | Size |
---|---|---|
AnimateView_2_1_1.png | 2012-07-24T04:53:42.000+0000 | 15936 |
On SDK : 2.1.1.v20120723131610 The issue is seen on Android 2.2 & 2.3 & 3.2 Checked on Android 4.0.3 & 4.1 its working as expected. On SDK :2.0.1 GA the animation does not autoreverse.
Tried this on Google Nexus S but couldn't reproduce. SDK 3.1.0
This issue is still reproducible on the reported devices :- LG P970 (v2.2), Samsung Tab (v3.2) with the titanium sdk:3.1.0.v20130228214607. Not occurring on device Nexus 7 Android 4.1 and Samsung GALAXY Note Android 2.3.6
This is fixed in master.
Verified the fix on android 2.3.X as the min required version is now 2.3 We do not see any trail while reversing. Thus closing Environment: Appcel Studio : 3.2.0.201310230601 Ti SDK : 3.2.0.v20131022171645 Mac OSX : 10.8.5 CLI - 3.2.0 with hash 72f7426b4ee6c2d2883c666d5b7e03906a16012f Android device running 2.3.X