Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10112] Android: Views: A view animated to change position shows a trail while reversing

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-08-14T16:28:32.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sRelease 3.2.0
ComponentsAndroid
Labelscore, insight, module_animation, qe-and070112, qe-nfc, qe-testadded
ReporterSatyam Sekhri
AssigneeAllen Yeung
Created2012-07-24T04:53:42.000+0000
Updated2014-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

FileDateSize
AnimateView_2_1_1.png2012-07-24T04:53:42.000+000015936

Comments

  1. Lokesh Choudhary 2012-07-27

    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.
  2. Sunila 2013-01-31

    Tried this on Google Nexus S but couldn't reproduce. SDK 3.1.0
  3. Shyam Bhadauria 2013-03-05

    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
  4. Allen Yeung 2013-08-14

    This is fixed in master.
  5. Lokesh Choudhary 2013-10-23

    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

JSON Source