{ "id": "127148", "key": "TIMOB-16596", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-07T21:20:13.000+0000", "created": "2014-03-04T22:32:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "animation", "reprod" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "37694", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "130268", "key": "AC-1345", "fields": { "summary": "Anchor Point, doesn´t recalculate when transform is set before the image.", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56463", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "139293", "key": "TIMOB-19592", "fields": { "summary": "Anchor point not preserved after rotation in 2DMatrix Android", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56462", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "155073", "key": "TIMOB-20449", "fields": { "summary": "Ti.UI.Animation.anchorPoint is not working on Android", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56464", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171541", "key": "TIMOB-25978", "fields": { "summary": "Android: animate() called more than once on a view does not work", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-06-14T19:26:53.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": "The animation anchor points are no longer working for android as of SDK 3.2.0. The demo in the docs doesn't even work. Here is the code you can use to test (copied from docs)\r\n\r\n{code:js} \r\nvar animationType = [\r\n { name: 'Top Left', anchorPoint: {x:0, y:0} },\r\n { name: 'Top Right', anchorPoint: {x:1, y:0} },\r\n { name: 'Bottom Left', anchorPoint: {x:0, y:1} },\r\n { name: 'Bottom Right', anchorPoint: {x:1, y:1} },\r\n { name: 'Center', anchorPoint: {x:0.5, y:0.5} }\r\n];\r\nvar animationTypeLength = animationType.length;\r\nvar animationCount = 0;\r\nvar animationTypePointer = 0;\r\n\r\nvar t = Ti.UI.create2DMatrix();\r\nt = t.rotate(90);\r\n\r\n// animation properties\r\nvar a = {\r\n transform: t,\r\n duration: 2000,\r\n autoreverse: true\r\n};\r\n\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'#336699',\r\n width:100, height:100\r\n});\r\nwin.add(view);\r\n\r\nvar button = Ti.UI.createButton({\r\n title:'Animate ' + animationType[animationTypePointer].name,\r\n height: (Ti.UI.Android) ? 80 : 40,\r\n width: (Ti.UI.Android) ? 300 : 200,\r\n top:30\r\n});\r\nwin.add(button);\r\n\r\nfunction updateButton(name){\r\n button.title = 'Animate ' + name;\r\n}\r\n\r\nbutton.addEventListener('click', function(){\r\n // set new anchorPoint on animation for Android\r\n a.anchorPoint = animationType[animationTypePointer].anchorPoint;\r\n \r\n // set new anchorPoint on view for iOS\r\n view.anchorPoint = animationType[animationTypePointer].anchorPoint;\r\n \r\n animationCount++;\r\n \r\n // determine position of next object in animationType array or return to first item\r\n // using modulus operator\r\n animationTypePointer = animationCount % animationTypeLength;\r\n \r\n // animate view, followed by callback to set next button title\r\n view.animate(a, function(){\r\n updateButton(animationType[animationTypePointer].name);\r\n });\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nWhen I test, it only animated from its center point. I noticed that it works in SDK 3.1.3 but is broken as of 3.2.0", "attachment": [], "flagged": false, "summary": "Android: Animation anchorPoints not working", "creator": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "- testing on galaxy s4\r\n- Ti SDK 3.2.1", "comment": { "comments": [ { "id": "296259", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue on Android device easily. Same code works fine on iOS platform.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T06:01:39.000+0000", "updated": "2014-03-10T06:01:39.000+0000" }, { "id": "332660", "author": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "body": "Hoping for a fix on this issue soon.", "updateAuthor": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2014-11-18T04:55:19.000+0000", "updated": "2014-11-18T04:55:19.000+0000" }, { "id": "423550", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T21:43:04.000+0000", "updated": "2017-07-05T21:43:04.000+0000" }, { "id": "436998", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10007", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-04-19T13:58:23.000+0000", "updated": "2018-04-19T13:58:23.000+0000" }, { "id": "437438", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merge to be enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-07T18:59:18.000+0000", "updated": "2018-05-07T18:59:18.000+0000" }, { "id": "437441", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-07T21:20:07.000+0000", "updated": "2018-05-07T21:20:07.000+0000" }, { "id": "438426", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180613110103\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10007", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-14T19:26:47.000+0000", "updated": "2018-06-14T19:26:47.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }