{ "id": "175942", "key": "TIMOB-28313", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2021-02-22T18:45:31.000+0000", "created": "2021-01-08T09:10:05.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-22T18:45:31.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": "As you can see in the attached image, listView renders a grey box instead of the check icon", "attachment": [ { "id": "67763", "filename": "IMG_5DF069390814-1.png", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-08T09:09:00.000+0000", "size": 193294, "mimeType": "image/png" }, { "id": "67764", "filename": "Simulator Screen Shot - iPhone 12 Pro Max - 2021-01-14 at 12.05.04.png", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-14T11:05:37.000+0000", "size": 159609, "mimeType": "image/png" }, { "id": "67780", "filename": "TestTableView_selection.zip", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-29T19:50:51.000+0000", "size": 68466, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: ListView multiple selection when editing renders grey box instead of check", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = macOS\r\n Version = 11.0.1\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 12.16.3\r\n npm Version = 6.14.5\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.5\r\n\r\nTitanium SDK\r\n SDK Version = 9.3.0.GA", "closedSprints": [ { "id": 1217, "state": "closed", "name": "2021 Sprint 4", "startDate": "2021-02-16T00:52:00.000Z", "endDate": "2021-02-27T00:52:00.000Z", "completeDate": "2021-02-28T18:56:28.465Z", "originBoardId": 114 }, { "id": 1215, "state": "closed", "name": "2021 Sprint 2", "startDate": "2021-01-18T20:36:00.000Z", "endDate": "2021-01-29T20:36:00.000Z", "completeDate": "2021-01-31T17:42:28.052Z", "originBoardId": 114 }, { "id": 1216, "state": "closed", "name": "2021 Sprint 3", "startDate": "2021-02-01T17:42:00.000Z", "endDate": "2021-02-12T17:42:00.000Z", "completeDate": "2021-02-12T22:01:52.235Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457991", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bgarcia] Can you provide small test case to reproduce the issue? Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-09T00:27:35.000+0000", "updated": "2021-01-09T00:27:35.000+0000" }, { "id": "458002", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({ backgroundColor: \"white\", fullscreen: true });\r\n var plainTemplate = {\r\n childTemplates: [\r\n {\r\n type: \"Ti.UI.Label\", // Use a label\r\n bindId: \"rowtitle\", // Bind ID for this label\r\n properties: {\r\n backgroundColor: \"white\",\r\n width: \"fill\",\r\n // Sets the Label.left property\r\n },\r\n },\r\n ],\r\n };\r\n\r\n var listView = Ti.UI.createListView({\r\n templates: { plain: plainTemplate },\r\n defaultItemTemplate: \"plain\",\r\n editing: true,\r\n AllowsMultipleSelectionDuringEditing: true,\r\n });\r\n var section = Ti.UI.createListSection();\r\n var sectionData = [];\r\n var i = 25;\r\n for (var k = 0; k < 25; k++) {\r\n sectionData.push({\r\n rowtitle: { text: \"Row \" + (k + 1) },\r\n properties: {\r\n canEdit: true,\r\n },\r\n });\r\n }\r\n section.setItems(sectionData);\r\n listView.sections = [section];\r\n win.add(listView);\r\n win.open();\r\n{code}\r\n\r\nAfter generating the sample, I've noticed that the error is that selected rows does not changes template background color if it's setted. !Simulator Screen Shot - iPhone 12 Pro Max - 2021-01-14 at 12.05.04.png|thumbnail! \r\n\r\n\r\n", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-14T11:05:41.000+0000", "updated": "2021-01-14T11:05:41.000+0000" }, { "id": "458116", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not an issue. The behavior is same as of native. On selection the selected background color, which changes, is behind the views which are added on cell.\r\nThis is nothing to do with multiple selection with editing.\r\nSee the attached native example [^TestTableView_selection.zip] .\r\n\r\n[~bgarcia] Probably you want to use [selectedBackgroundColor |https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListItem-property-selectedBackgroundColor] to match the selection color with your view's color.\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-29T19:51:01.000+0000", "updated": "2021-01-29T19:51:27.000+0000" }, { "id": "458274", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok, thank you very much for the clarification", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-19T14:05:46.000+0000", "updated": "2021-02-19T14:05:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }