{ "id": "175992", "key": "TIMOB-28327", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-09-10T09:28:30.000+0000", "created": "2021-01-25T12:33:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-09-10T09:28:30.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This is a conditional code scenario that we have since day one: Designing a non-clickable cell on iOS and Android, ending up doing the following:\r\n\r\n{code:js}\r\n{\r\n properties: {\r\n selectionStyle: OS_ANDROID ? undefined : Ti.UI.iOS.ListViewCellSelectionStyle.NONE\r\n }\r\n}\r\n{code}\r\n\r\nWhat this ticket aims for is to move {{Ti.UI.iOS.ListViewCellSelectionStyle.NONE}} to {{Ti.UI.ListViewCellSelectionStyle.NONE}}, add Android parity and also deprecate the existing iOS constants {{Ti.UI.iOS.ListViewCellSelectionStyle.BLUE}} and {{Ti.UI.iOS.ListViewCellSelectionStyle.GRAY}} in favor of {{Ti.UI.ListViewCellSelectionStyle.DEFAULT}} (which is selectable in reflects the current behavior of iOS and Android).\r\n\r\nFinally (and less critical), Android should support the {{selectItem(...)}} and {{deselectItem(...)}} properties which is used to manually set a selection (using {{selectItem}})) or clear a selection after tapping a selectable cell (using {{deselectItem}}).\r\n\r\nFor us this would fix 39+ conditional statements immediately.", "attachment": [], "flagged": false, "summary": "Android: Parity for ListView's \"selectionStyle\" and \"[de]selectItem\" methods", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "458672", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12769", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-11T20:42:09.000+0000", "updated": "2021-05-11T20:42:09.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }