{ "id": "159921", "key": "AC-3576", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-05-04T08:22:20.000+0000", "created": "2016-05-02T11:36:37.000+0000", "labels": [ "android" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-04T08:23:11.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "i want to add a view on window. whenever i touch on image. but i not able to get exact point of touch . image is not adding where i touch. \r\nPlease find attached file ", "attachment": [ { "id": "59119", "filename": "touchapp.zip", "author": { "name": "ajaylawarsaini@gmail.com", "key": "ajaylawarsaini@gmail.com", "displayName": "ajay", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-05-02T11:32:07.000+0000", "size": 10477213, "mimeType": "application/zip" } ], "flagged": false, "summary": "Add view on touch start on image ", "creator": { "name": "ajaylawarsaini@gmail.com", "key": "ajaylawarsaini@gmail.com", "displayName": "ajay", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "ajaylawarsaini@gmail.com", "key": "ajaylawarsaini@gmail.com", "displayName": "ajay", "active": true, "timeZone": "Asia/Kolkata" }, "environment": null, "comment": { "comments": [ { "id": "384673", "author": { "name": "ajaylawarsaini@gmail.com", "key": "ajaylawarsaini@gmail.com", "displayName": "ajay", "active": true, "timeZone": "Asia/Kolkata" }, "body": "i have fixed this issue. now it is working fine on all android device.\r\ni used this code \r\nvar carsideImage = Ti.UI.createImageView({\r\n\t\ttop:'30',\r\n image:'/honada.jpg',\r\n\t\twidth:'80%',\r\n\t\theight:'70%'\r\n\t });\r\n$.index.add(carsideImage);\r\nvar coer;\r\ncarsideImage.addEventListener('touchstart',function(e){\r\n\tif(isAdd)\r\n\t{\r\n\t coer = carsideImage.convertPointToView({x: e.x, y: e.y}, $.index);\r\n\t console.log(coer.x,coer.y);\r\n\t setlb();\r\n\t}\r\n\r\n});\r\nvar i = 0;\r\nfunction setlb()\r\n{\r\n\tconsole.log(Ti.Platform.displayCaps.logicalDensityFactor);\r\n\tvar tag = Ti.UI.createImageView({\r\n\ttop:(coer.y / Ti.Platform.displayCaps.logicalDensityFactor) ,\r\n\tleft:(coer.x / Ti.Platform.displayCaps.logicalDensityFactor) ,\r\n\twidth:'15',\r\n zIndex:'10',\r\n borderRadius:'2',\r\n\theight:'15',\r\n\tbackgroundColor:'red'\r\n });\r\n $.index.add(tag);\r\n}", "updateAuthor": { "name": "ajaylawarsaini@gmail.com", "key": "ajaylawarsaini@gmail.com", "displayName": "ajay", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-05-04T07:31:27.000+0000", "updated": "2016-05-04T07:31:27.000+0000" }, { "id": "384680", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~ajaylawarsaini@gmail.com],\r\n\r\nThanks for the update.", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-04T08:23:11.000+0000", "updated": "2016-05-04T08:23:11.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }