{ "id": "97747", "key": "TIMOB-10362", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-20T17:47:14.000+0000", "created": "2012-07-21T03:19:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "exalture", "insight" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T21:27:23.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": "I have a button that triggers a animation. But each time i press the animation is replayed from the start.\r\nThe problem is that while replaying you can still see the animated view at its destination position(so you it twice).\r\n{code}\r\nvar win = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});\r\n\r\nvar button = Ti.UI.createButton({\r\n title:'Translate',\r\n width:100,\r\n height:50,\r\n top:0\r\n});\r\nwin.add(button);\r\n\r\n\r\n\r\n//label using localization-ready strings from /i18n/en/strings.xml\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\n//Add behavior for UI\r\nbutton.addEventListener('click', function(e) {\r\n if (!view.hasOwnProperty('currentTransform'))\r\n {\r\n var transform = Ti.UI.create2DMatrix().translate(0,200);\r\n view.currentTransform = transform;\r\n view.animate({transform:transform, duration:400})\r\n Ti.API.info('first transform')\r\n }\r\n else\r\n {\r\n view.transform = Ti.UI.create2DMatrix(); //reset!\r\n view.animate({transform:view.currentTransform, duration:400})\r\n Ti.API.info('next transform')\r\n }\r\n \r\n});\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Redraw problem on 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 CI build\r\nandroid 3.2", "comment": { "comments": [ { "id": "243201", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I can't reproduce this. Tried with SDK 3.1.0.\r\nI don't see the animation image on the target.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-20T17:47:14.000+0000", "updated": "2013-03-20T17:47:14.000+0000" }, { "id": "244652", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "You are right i dont even see it anymore with the 3.0.2.GA.\r\nI guess it s fixed. Great job", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-03-29T15:19:27.000+0000", "updated": "2013-03-29T15:19:27.000+0000" }, { "id": "414445", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:27:23.000+0000", "updated": "2017-03-21T21:27:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }