{ "id": "62059", "key": "TIMOB-1427", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:09.000+0000", "created": "2011-04-15T02:52:04.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "tableviewrow" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:09.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": "{html}

I expect to get some kind of alert, but nothing fires. According\nto the docs, the click events should work.

\n
\n\nTitanium.UI.setBackgroundColor('#000');\n\nvar win =  Titanium.UI.createWindow({  \n    title:'TiFourgen',\n    backgroundColor:'#000'\n});\n\nvar text = 'Document 1';\n\n\nvar table = Ti.UI.createTableView({});\nwin.add(table);\n\n\nfor (var i = 0; i < 10; i++) {\n    var row = Ti.UI.createTableViewRow({\n        height: 100,\n        className: 'document',\n        touchEnabled: true\n    });\n\n    row.addEventListener('click',function()\n    {\n            alert(\"row click!\");\n    });\n    \n    var label = Titanium.UI.createLabel({\n        text: text,\n        width:200,\n        height:150,\n        top:10,\n        color:'#336699',\n        font:{fontSize:16, fontStyle:'italic'},\n        textAlign:'left', \n        touchEnabled: true,\n        backgroundColor:'#ffffff'\n    });\n\n    label.addEventListener('click',function()\n    {\n            alert(\"label click!\");\n    });\n    \n    \n    row.add(label);\n    table.appendRow(row);\n}\n\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Android 2.2: TableViewRow click event not firing", "creator": { "name": "michaelhoisie", "key": "michaelhoisie", "displayName": "Michael Hoisie", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "michaelhoisie", "key": "michaelhoisie", "displayName": "Michael Hoisie", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125644", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Confirmed. Also pre-2.2, AFAICT.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:52:05.000+0000", "updated": "2011-04-15T02:52:05.000+0000" }, { "id": "125645", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [8fa74758d1ecb7c3082bc771b44ea8f86a6a5c8c])\n[#1427 state:fixed-in-qa] Detect if row has a\nclick listener and fire it. If the tableview has a listener that\nwill fire as well. \nhttp://github.com/appcelerator/titanium_mobile/commit/8fa74758d1ecb...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:06.000+0000", "updated": "2011-04-15T02:52:06.000+0000" }, { "id": "125646", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed on a nexus 1 (2.2) and a g1 (1.6), ipod touch\n(4.1)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:06.000+0000", "updated": "2011-04-15T02:52:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }