{ "id": "100417", "key": "TIMOB-10751", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-09-09T19:30:49.000+0000", "created": "2012-09-04T14:10:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "parity" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20646", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "93149", "key": "TIMOB-9867", "fields": { "summary": "Android: TableView does not receive events when it contains complex rows", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:38:51.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": "h6.Parity Problem\r\nWhen you add the button directly to the row, the event doesn't fire when you click on the left side of the row (actual behavior).\r\n\r\nh6.Expected behavior\r\nThe click event fired when clicking on a row \r\n\r\nh6.Tested on\r\niOS 5.1 simulator\r\nDroid Razr 2.3.5 \r\n\r\nh6.Repro sequence\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#00ffff'\r\n});\r\n\r\nvar tableView = Titanium.UI.createTableView({\r\n\tallowsSelection: true\r\n}); \r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n height: 60,\r\n className: 'row'\r\n});\r\n\r\nvar btnSw = Titanium.UI.createButton({ \r\n right:0,\r\n height: 50,\r\n width: 50, \r\n title: 'foo',\r\n sw:true \r\n});\r\n\r\nbtnSw.addEventListener('click', function(e) {\r\n alert('Button');\r\n})\r\n\r\nrow.add (btnSw);//if you remove the button the row will be able to get the click event\r\n\r\ntableView.addEventListener('click', function(e) {\r\n alert('got click');\r\n});\r\n\r\ntableView.setData ([row]);\r\n\r\nwin.add (tableView);\r\n\r\nwin.open ();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TableViewRow doesn't fire click event", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 2.1.2 & 2.2 CI Build\r\nAndroid OS 2.3.5", "comment": { "comments": [ { "id": "217565", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-09-04T23:55:13.000+0000", "updated": "2012-09-04T23:55:13.000+0000" }, { "id": "217756", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks, Ivan. This is indeed a duplicate of TIMOB-9867.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T20:05:31.000+0000", "updated": "2012-09-05T20:05:31.000+0000" }, { "id": "217759", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T20:32:42.000+0000", "updated": "2012-09-05T20:33:05.000+0000" }, { "id": "217762", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "That was on accident when addressing the customer issue, just to keep track.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T21:01:30.000+0000", "updated": "2012-09-05T21:01:30.000+0000" }, { "id": "414900", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above and has since been closed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:38:51.000+0000", "updated": "2017-03-22T20:38:51.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }