{ "id": "174250", "key": "TIMOB-27499", "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": "2020-05-14T23:17:28.000+0000", "created": "2019-10-11T16:35:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "andorid", "regression", "sdk-8.2.0.GA", "tableview" ], "versions": [], "issuelinks": [ { "id": "58367", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "174746", "key": "TIMOB-27769", "fields": { "summary": "Android: Textfield inputs not setting in focused textfield and Keyboard not showing (sometimes) on a textfields which is focused", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-05-14T23:17:28.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": "I have a tableview with several rows containing views and labels.\r\nIf the rows are all visible in the window, I can trigger the click event in the tableview. \r\nIf instead I have more elements, as soon as I scroll, I can no longer trigger the click event on the first rows, but only on the final ones.\r\n\r\nIt works with SDK 8.0.1 and 8.0.2\r\n\r\n\r\n{code:javascript}\r\nvar w = Ti.UI.createWindow({\r\n backgroundColor : \"white\",\r\n fullscreen : true\r\n});\r\nvar tv = Ti.UI.createTableView({\r\n top : 0,\r\n width : \"100%\",\r\n height : Ti.UI.SIZE,\r\n});\r\nvar data = [];\r\nfor(var i=0; i<50; i++){\r\n var tvr = Ti.UI.createTableViewRow();\r\n tvr.add(Ti.UI.createView({\r\n backgroundColor : \"blue\",\r\n height : 50, width : \"95%\"\r\n }));\r\n tvr.add(Ti.UI.createLabel({\r\n color : \"white\",\r\n text : \"row \"+i\r\n }));\r\n data.push(tvr);\r\n}\r\ntv.data = data;\r\ntv.addEventListener(\"click\",function(e){\r\n Ti.API.info(\"Click row \" + e.index);\r\n});\r\ntv.addEventListener(\"scroll\",function(e){\r\n Ti.API.info(\"Scroll\");\r\n});\r\nw.add(tv);\r\nw.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: TableView doesn't trigger the click event views scrolled off/in as of 8.1.0", "creator": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 8.2.0 and SDK 8.1.1.GA", "closedSprints": [ { "id": 1192, "state": "closed", "name": "2020 Sprint 8", "startDate": "2020-04-10T18:08:36.092Z", "endDate": "2020-04-24T18:08:00.000Z", "completeDate": "2020-04-24T16:23:30.466Z", "originBoardId": 114 }, { "id": 1194, "state": "closed", "name": "2020 Sprint 9", "startDate": "2020-04-24T17:09:51.572Z", "endDate": "2020-05-08T17:09:00.000Z", "completeDate": "2020-05-08T15:40:07.869Z", "originBoardId": 114 }, { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452253", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~astrovicapps], I have tried to test your project with the sampel code. I was ablre to reproduc ethe behavior. In my observation before the scroll I can initiate the click enent in any rod that is shown in the screen. But after I scroll, some of the rows click event is not working. And it's random. After one scroll if one rows click enent wasn't firing? if I come back to the same row after couple of more scrol it works but other rows which was workign previously dosen't work. Tested in Android emulator with SDK 8.2.0.GA. Moving to engineering. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-10-24T23:02:13.000+0000", "updated": "2019-10-24T23:02:13.000+0000" }, { "id": "454696", "author": { "name": "spulipakkam", "key": "spulipakkam", "displayName": "Srinivasan Pulipakkam", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] Can you please review this as part of the tableview rewrite ?", "updateAuthor": { "name": "spulipakkam", "key": "spulipakkam", "displayName": "Srinivasan Pulipakkam", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-13T16:17:22.000+0000", "updated": "2020-03-13T16:17:22.000+0000" }, { "id": "455462", "author": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is someone working on fixing this? Our program is 99% made up of TableView and this problem has plagued us for over a year. It's a massive bug. Its been 7 months since this was confirmed by Axway and there's no fix?", "updateAuthor": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-14T22:18:03.000+0000", "updated": "2020-05-14T22:18:03.000+0000" }, { "id": "455464", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ticket [TIMOB-27769] solves this issue. It's scheduled to be fixed in Titanium 9.0.2.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-14T23:17:22.000+0000", "updated": "2020-05-14T23:17:22.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }