{ "id": "84224", "key": "TIMOB-6852", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-20T18:26:12.000+0000", "created": "2011-12-22T14:37:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "Parity", "dr-list", "insight", "pathmenu", "qe-testadded", "tbs-1.9.0" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "30184", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "105163", "key": "TIMOB-11811", "fields": { "summary": "Android: Bring animation to parity with iOS capabilities", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } }, { "id": "27945", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "106894", "key": "TIMOB-12141", "fields": { "summary": "Android: Unable to animate from the last position/condition", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-11T11:30:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Problem\r\n\r\nWhen animating a view's transform, the transform will disappear, or be reset, after the animation completes on Android. It works fine on iOS. \r\n\r\nh3. Code to Reproduce\r\n\r\n[http://pastie.org/3059555|http://pastie.org/3059555]\r\n\r\nJust run the code listed there for both Android and iOS. On iOS, the view will animate to the bottom-right, and rotate 60 degrees. On Android, the same thing will happen, but when the animation completes, the rotation goes back to zero. The same thing happens if you apply a {{scale}}. All other properties, like {{left}}, {{top}}, {{opacity}}, etc... work fine, only the transform resets on Android. \r\n\r\nI attempted to workaround this by setting the view's transform to the animations transform in the animation's {{complete}} event, but there is a very noticable flicker when this happens, very ugly.", "attachment": [], "flagged": false, "summary": "Android: Transform and color resets after animation", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.8.0.1 RC3\r\nJavascript Engine: Rhino & V8 \r\nPlatform & version: Android 2.2+\r\nDevice Details: Android emulator\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 1.0.7.201112132151", "comment": { "comments": [ { "id": "177110", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "Yeah dude, this is totally ruining my Titanium game development efforts. :)", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-23T06:12:47.000+0000", "updated": "2011-12-23T06:12:47.000+0000" }, { "id": "177115", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Oh ye of little vision! I've got some pretty outside-the-box data visualization ideas actually. :)", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-23T07:32:57.000+0000", "updated": "2011-12-23T07:32:57.000+0000" }, { "id": "177351", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So apparently android animation does NOT affect layouts. In other words, after the view is animated, its params stay untouched. We'll have to apply the transformation ourselves to the view..", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T18:32:35.000+0000", "updated": "2011-12-27T18:32:35.000+0000" }, { "id": "177352", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hieu, I mentioned it above, but just to reiterate, I tried applying the animation's transformation to the view in Javascript inside the animation's {{complete}} event. It kinda worked, but there's a _very_ noticeable flicker as it changes transformation.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T19:03:21.000+0000", "updated": "2011-12-27T19:03:21.000+0000" }, { "id": "248240", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The color animation also resets after animation. Test case in TIMOB-11993.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-18T21:41:02.000+0000", "updated": "2013-04-18T21:41:02.000+0000" }, { "id": "250457", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "FYI, this occurs because we re-layout the view at the end of translate (left/right/top etc) animations, and so when we re-lay-it-out then it loses its transform. And the reason we re-layout is because of *another* bug, namely TIMOB-10042. So we're in a \"6 of one, etc\" situation here at the moment. ", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-07T00:05:21.000+0000", "updated": "2013-05-07T00:05:21.000+0000" }, { "id": "262567", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved as a part of https://github.com/appcelerator/titanium_mobile/pull/4398", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-20T18:26:12.000+0000", "updated": "2013-07-20T18:26:12.000+0000" }, { "id": "275898", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\n\r\nAppc-Studio: 3.2.0.201310181700\r\nSdk:3.2.0.v20131018154951\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3,iphone5(v7)\r\nXcode: 5\r\n\r\n\r\nTransform and color does not resets after animation in both iOS and Android.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T08:45:41.000+0000", "updated": "2013-10-21T08:45:41.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }