{ "id": "93149", "key": "TIMOB-9867", "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": "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": "2012-10-03T20:45:12.000+0000", "created": "2012-06-13T07:18:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "parity" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "issuelinks": [ { "id": "20646", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "100417", "key": "TIMOB-10751", "fields": { "summary": "Android: TableViewRow doesn't fire click event", "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": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T20:13:13.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": "h2. The problem\r\n\r\n\r\nEvents are not propagated to table view when it contains complex rows (that is, rows that contain other components like buttons and labels).\r\n\r\nh2. Test case\r\n\r\nTo see this issue, run this example:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#000',\r\n navBarHidden: true\r\n});\r\n\r\n\r\nvar tableView = Ti.UI.createTableView();\r\n\r\nvar rows = [], row;\r\n\t\r\nfor (var i = 0; i < 10; ++i) {\r\n\trow = Ti.UI.createTableViewRow({ layout: 'horizontal' }),\r\n\trow.add(Ti.UI.createLabel({ left: 20, text: 'Label ' + i }));\r\n\trow.add(Ti.UI.createButton({ left: 20, title: 'Button ' + i }));\r\n\trows[i] = row;\r\n}\r\n\r\ntableView.setData(rows);\r\n\r\nvar counter = 0;\r\ntableView.addEventListener('click', function(e) {\r\n\tTi.API.info('Table view clicked ' + (++counter));\r\n\tTi.API.info(e.source);\r\n});\r\n\r\nwin.add(tableView);\r\n \r\nwin.open();\r\n{code}\r\n\r\nClick on label or button and you'll see that output is generated.\r\nClick on row (right from button) and the output won't be generate, which means event is not triggered.\r\n\r\nh2. Expected behavior\r\n\r\nClick on table view row should trigger table view's click event.\r\n\r\n\r\nThis works fine on iOS.\r\nThis is not regression, doesn't work with 1.8.3 either.", "attachment": [], "flagged": false, "summary": "Android: TableView does not receive events when it contains complex rows", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* Titanium SDK version: 2.1.0 (06/12/12 17:02 40ba370)\r\n* v8\r\n* Android 3.1\r\n* Thinkpad Tablet\r\n* OSX Lion", "comment": { "comments": [ { "id": "198435", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Interesting is that if row's content is wrapped with TiUIView, this issue does not happen.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-06-14T04:43:39.000+0000", "updated": "2012-06-14T04:43:39.000+0000" }, { "id": "217758", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h6.Background environment\r\nIt happens on Android OS 2.2 & 2.3.5 versions as well not only on Android 3.1 tablets\r\n\r\nh6.Tested on\r\nRazr 2.3.5 device\r\nLG Ally 2.2", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T20:32:24.000+0000", "updated": "2012-09-05T20:32:24.000+0000" }, { "id": "221071", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be fixed with changes for TIMOB-10238, TIMOB-6723, and TIMOB-10458.\r\nNote that the pull requests for TIMOB-6723 and TIMOB-10458 are pending at this time.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T19:51:55.000+0000", "updated": "2012-09-26T19:52:24.000+0000" }, { "id": "221959", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce with latest changes to 3.0.X.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T20:43:56.000+0000", "updated": "2012-10-03T20:43:56.000+0000" }, { "id": "416235", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T20:13:13.000+0000", "updated": "2017-03-29T20:13:13.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }