{ "id": "129165", "key": "TIMOB-16860", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-04-17T17:49:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "2DMatrix", "SupportTeam", "alloy", "android", "animate", "transform" ], "versions": [], "issuelinks": [ { "id": "36698", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "121649", "key": "TIMOB-15633", "fields": { "summary": "Android: Animate is canceling the view transform ", "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 } } } } ], "assignee": null, "updated": "2018-02-28T20:04:26.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Run the below code and you will see that the label position is changed properly when 'btTestAnimate' is clicked. \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor:'white',\r\n});\r\n\r\nvar coords = Ti.UI.createLabel({ text:'coords' });\r\n\r\nwin.add(coords);\r\n\r\nvar btTranslate = Ti.UI.createButton({top:100,title:\"btTranslate\"});\r\nwin.add(btTranslate);\r\n\r\nvar btTestAnimate = Ti.UI.createButton({top:200,title:\"btTestAnimate\"});\r\nwin.add(btTestAnimate);\r\n\r\nvar t1 = Titanium.UI.create2DMatrix();\r\nbtTranslate.addEventListener(\"click\",function(e){ t1 = t1.translate(50,0); coords.transform = t1; });\r\n\r\nbtTestAnimate.addEventListener(\"click\",function(e){\r\nt1 = t1.translate(50,0);\r\ncoords.animate({transform : t1,duration:1000});\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nBut if the matrix is concatenated, it doesn't use the propery animation is not used and the result is not persisted which causes the label to flicker.\r\n\r\nRun the below code to see the behaviour\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white',\r\n});\r\n\r\nvar coords = Ti.UI.createLabel({\r\n text:'coords'\r\n });\r\n\r\nwin.add(coords);\r\n\r\nvar btTranslate = Ti.UI.createButton({top:100,title:\"btTranslate\"});\r\nwin.add(btTranslate);\r\n\r\nvar btTestAnimate = Ti.UI.createButton({top:200,title:\"btTestAnimate\"});\r\nwin.add(btTestAnimate);\r\n\r\nvar t1;\r\nvar i = 1;\r\nbtTranslate.addEventListener(\"click\",function(e){ t1 = Titanium.UI.create2DMatrix();t1 = t1.translate(i*50,0); coords.transform = t1; i++});\r\n\r\nbtTestAnimate.addEventListener(\"click\",function(e){\r\n t1 = Titanium.UI.create2DMatrix();t1 = t1.translate(i*50,0);i++;\r\ncoords.animate({transform : t1,duration:1000});\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": " Android: Animate with Matrix with concatenating same operation multiple times doesn't use property animation", "creator": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "android alloy 1.2.2", "comment": { "comments": [ { "id": "320963", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-29T06:09:13.000+0000", "updated": "2014-08-29T06:09:13.000+0000" }, { "id": "325419", "author": { "name": "hamzaezzi", "key": "hamzaezzi", "displayName": "hamza ezzi", "active": true, "timeZone": "Europe/Berlin" }, "body": "will it be fixed in the 3.4 sdk ?", "updateAuthor": { "name": "hamzaezzi", "key": "hamzaezzi", "displayName": "hamza ezzi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-24T13:56:21.000+0000", "updated": "2014-09-24T13:56:21.000+0000" }, { "id": "325420", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hamzaezzi] Apologies, it is unlikely. Perhaps in a future version. If you can get more people to \"watch \" the ticket, that might influence how fast it is fixed.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-24T14:01:45.000+0000", "updated": "2014-09-24T14:01:45.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }