{ "id": "176203", "key": "AC-6704", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-03T10:31:09.000+0000", "created": "2021-05-28T14:52:27.000+0000", "labels": [ "ListView", "android", "infinitescroll", "marker" ], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-06-03T10:31: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": [], "description": "Marker event in ListView not work correctly on TiSDK 10.0.0.GA, see code below\r\nWorkaround is to set a ListItem Height is fix the problem but sometime the event not fire and need no scroll again to have the event.\r\nThis bug have a big impact on app with infinite scroll \r\n\r\nvar sections = [];\r\nvar listView = Ti.UI.createListView();\r\n\r\nlistView.addEventListener(\"marker\", (e) => {\r\n\tTi.API.info(\"MARKER EVENT FIRED\");\r\n\taddSection();\r\n});\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.addEventListener(\"open\", addSection)\r\nwin.add(listView);\r\nwin.open();\r\n\r\nfunction addSection() {\r\n\tvar dataSet = [];\r\n\tfor (var i = 0; i < 20; i++) {\r\n\t\tdataSet.push({\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: \"ITEM AT \" + (i + 1),\r\n\t\t\t\t// set height size to fix marker event bug\r\n\t\t\t\t// height: 50,\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\tvar section = Ti.UI.createListSection({\r\n\t\titems: dataSet\r\n\t});\r\n\tsections.push(section);\r\n\tlistView.sections = sections;\r\n\r\n\tvar marker = {\r\n\t\tsectionIndex: sections.length - 1,\r\n\t\titemIndex: dataSet.length - 1\r\n\t}\r\n\tTi.API.info(\"MARKER\", JSON.stringify(marker));\r\n\tlistView.addMarker(marker);\r\n}\r\n", "attachment": [], "flagged": false, "summary": "Android Listview marker event", "creator": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "subtasks": [], "reporter": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "environment": null, "comment": { "comments": [ { "id": "458735", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This is fixed by TIMOB-28462 and available in 10.1.0 (ti sdk install -b master) and 10_0_X (ti sdk install -b 10_0_X) CI builds", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-06-03T10:31:01.000+0000", "updated": "2021-06-03T10:31:01.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }