{ "id": "97748", "key": "AC-2796", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-08-20T11:16:10.000+0000", "created": "2012-07-21T04:01:59.000+0000", "labels": [ "transform", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:47:43.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "If you dont use view animate to first set transform, then animation wont work.\r\n{code}\r\nvar win = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n title:'slidein',\r\n width:100,\r\n height:50,\r\n top:0\r\n});\r\nwin.add(button1);\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'red',\r\n height:100,\r\n width:100\r\n});\r\nwin.add(view);\r\n\r\nbutton1.addEventListener('click', function(e) {\r\n\r\n view.transform = Ti.UI.create2DMatrix().translate(-500, 0); //reset!\r\n view.animate({transform:Ti.UI.create2DMatrix(), duration:400})\r\n});\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "[android] transform and animation", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "Ti 2.2.0\r\nandroid 3.2", "comment": { "comments": [ { "id": "215162", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-20T11:16:10.000+0000", "updated": "2012-08-20T11:16:10.000+0000" }, { "id": "281066", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:30:16.000+0000", "updated": "2013-11-24T22:30:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }