{ "id": "151110", "key": "AC-1314", "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": "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": "2015-09-30T07:14:43.000+0000", "created": "2015-09-11T05:58:36.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-08T07:37:43.000+0000", "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" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "2D matrix was not working in android. i want to implement feature similar to 3D matrix in IOS to move image/View on the screen kindly suggest me alternative way to implement this feature in android.\r\nwe have tried the below code it doesnt work for android\r\nif(Alloy.Globals.isAndroid == false)\r\n{\t\r\nvar olt = Titanium.UI.create3DMatrix(), curX, curY;\r\n \r\nview.addEventListener('touchstart', function(e) {\r\n curX = e.x;\r\n curY = e.y;\r\n});\r\nview.addEventListener('touchmove', function(e) {\r\n var deltaX = e.x - curX, deltaY = e.y - curY;\r\n olt = olt.translate(deltaX, deltaY, 0);\r\n view.animate({\r\n transform : olt,\r\n duration : 100\r\n });\r\n});\r\n} ", "attachment": [], "flagged": false, "summary": "Android: 2D matrix was not working", "creator": { "name": "ashish22", "key": "ashish22", "displayName": "Ashish", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ashish22", "key": "ashish22", "displayName": "Ashish", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "comment": { "comments": [ { "id": "364070", "author": { "name": "pchowdhury", "key": "pchowdhury", "displayName": "Papia Chowdhury", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have tested this issue. 2D matrix is working in my environment.\r\n\r\n*Testing Environment:*\r\nAppcelerator Studio, build: 4.3.0.201509031836\r\nAppC CLI: 5.0.0-50\r\nTitanium SDK: 4.1.1 GA\r\nAndroid Emulator: Google Nexus 4 - 4.1.1\r\nOS X version: 10.9.5\r\n\r\n*Steps to test:*\r\n1. Create a classic project\r\n2. Replace app.js with following code\r\n3. Run project\r\n\r\nClick on animate button and observe that it's working for android.\r\n\r\n*Test Case:*\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar label = Ti.UI.createLabel({\r\n\tfont : {\r\n\t\tfontSize : 50\r\n\t},\r\n\ttext : 'Appcelerator',\r\n\ttextAlign : 'center',\r\n\ttop : 100,\r\n});\r\nwin.add(label);\r\nvar button = Ti.UI.createButton({\r\n\ttitle : 'Animate',\r\n\tbottom : 20,\r\n\twidth : 200,\r\n\theight : 40\r\n});\r\nwin.add(button);\r\nbutton.addEventListener('click', function() {\r\n\tvar t1 = Ti.UI.create2DMatrix();\r\n\tt1 = t1.translate(0, 300);\r\n\tvar a1 = Ti.UI.createAnimation();\r\n\ta1.transform = t1;\r\n\ta1.duration = 800;\r\n\tlabel.animate(a1);\r\n});\r\nwin.open(); \r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-16T11:00:18.000+0000", "updated": "2015-09-30T07:14:36.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }