{ "id": "174471", "key": "TIMOB-27626", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-11-27T11:25:08.000+0000", "created": "2019-11-25T15:49:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "6.1.0", "8.3.0", "allowsSelection", "android", "highlightedColor", "tableview" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "57952", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "158419", "key": "TIMOB-22469", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-12750", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2019-11-27T11:25:56.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": "First reported as a regression in SDK 6.1.0. Regression still exists in latest SDK build. Note that this issue only affects Android. It works as intended on iOS.\r\n\r\nWhen using {{TableView}} with {{allowsSelection}} set to {{true}} and rows containing labels with {{highlightedColor}} property, the row does not stay highlighted upon selection.\r\n\r\nTest Code:\r\n{code:js}\r\nvar createRow = function (title) {\r\n\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\taccessibilityLabel: title,\r\n\t\t\tclassName: 'test',\r\n\t\t\theight: 80,\r\n\t\t\tselectedBackgroundColor: '#ff0000'\r\n\t\t});\r\n\r\n\t\tvar titleLabel = Ti.UI.createLabel({\r\n\t\t\taccessibilityLabel: title,\r\n\t\t\tfont: {\r\n\t\t\t\tfontFamily: 'Helvetica-Bold',\r\n\t\t\t\tfontSize: 20\r\n\t\t\t},\r\n\t\t\theight: 24,\r\n\t\t\thighlightedColor: '#fff',\r\n\t\t\tleft: 10,\r\n\t\t\ttext: title,\r\n\t\t\ttouchEnabled: false\r\n\t\t});\r\n\r\n\t\trow.add(titleLabel);\r\n\r\n\t\treturn row;\r\n\t};\r\n\r\n\tvar tableData = [];\r\n\r\n\tfor (var i = 0, l = 100; i < l; i++) {\r\n\t\tvar row = createRow('Row Index # ' + i);\r\n\t\ttableData.push(row);\r\n\t}\r\n\r\n\tvar tableView = Ti.UI.createTableView({\r\n\t\taccessibilityLabel: 'TableView_35',\r\n\t\tallowsSelection: true,\r\n\t\tdata: tableData,\r\n\t\trowHeight: 80,\r\n\t\ttop: 0\r\n\t});\r\n\r\n\twin.add(tableView);\r\n\twin.open();\r\n{code}\r\n\r\n*Test steps*\r\n- Create new classic app\r\n- Copy the code above into app.js\r\n- Run the app\r\n- Click on a random row\r\n- Row will flash red\r\n\r\n*Expected result*\r\nRow should stay highlighted and should only become de-highlighted when another row is selected.\r\n\r\n*Note (unexpected result)*\r\nIf you long-press a row, you will notice that the text label color stays the same, irregardless of the {{highlightedColor}} property.", "attachment": [], "flagged": false, "summary": "Android: TableView allowsSelection(true) property does not keep the row highlighted", "creator": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "environment": "Any Android device/emulator running SDK 6.1+", "comment": { "comments": [ { "id": "452931", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "Closing both this and the related ticket as Invalid, since the property is an iOS only.", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2019-11-27T11:24:42.000+0000", "updated": "2019-11-27T11:24:42.000+0000" }, { "id": "452932", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Looks like we should close both tickets. Upon further investigation, the highlightedColor property is indeed not working as intended on Android. I'll create a ticket for this.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-11-27T11:25:56.000+0000", "updated": "2019-11-27T11:25:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }