{ "id": "168554", "key": "TIMOB-24874", "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": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2017-06-21T23:27:05.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule", "qe-6.2.0", "regression" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" } ], "issuelinks": [ { "id": "56316", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "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 } } } }, { "id": "55267", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "109705", "key": "TIMOB-12750", "fields": { "summary": "iOS: TableView with allowsSelection true and rows containing labels with highlightedColor", "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": "Critical", "id": "1" }, "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-11-20T00:24:24.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": "When using {{TableView}} with {{allowsSelection}} set to {{true}} and rows containing labels with {{highlightedColor}} The row does not stay highlighted when clicking of the row. This is different to {{iOS}} where the row stays selected until another row is pressed.\r\n\r\nTest Code:\r\n{code:java}\r\nvar createRow = function(title) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\tclassName: 'test',\r\n\t\theight: 80,\r\n\t\tselectedBackgroundColor: '#ff0000'\r\n\t});\r\n\t\r\n\tvar titleLabel = Ti.UI.createLabel({\r\n\t\tcolor: '#000',\r\n\t\tfont: {fontFamily: 'Helvetica-Bold', fontSize: 20},\r\n\t\theight: 24,\r\n\t\thighlightedColor: '#fff',\r\n\t\tleft: 10,\r\n\t\ttext: title,\r\n\t\ttouchEnabled: true\r\n\t});\r\n\t\r\n\trow.add(titleLabel);\r\n\t\r\n\treturn row;\r\n};\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\n\r\nvar tableData = [];\r\n\r\nfor (var i = 0, l = 100; i < l; i++) {\r\n\tvar row = createRow('Row Index # ' + i);\r\n\ttableData.push(row);\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tallowsSelection: true,\r\n\tdata: tableData,\r\n\trowHeight: 80,\r\n\tseparatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE,\r\n\tstyle: Ti.UI.iPhone.TableViewStyle.PLAIN,\r\n\ttop: 0\r\n});\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\n*Test steps*\r\n+ Create a new application \r\n+ Copy the code above in to the application\r\n+ Run the application\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 unhighlighted when another row is pressed. \r\n", "attachment": [], "flagged": false, "summary": "[Android]Selected row does not stay highlighted when using a TableView.", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK Version: 6.1.1.v20170619143158\r\nAppcelerator Command-Line Interface, version 6.2.2\r\nGoogle Nexus 6P (7.1.1)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 6.10.1\r\nXcode: 8.2\r\nAppcelerator Studio: 4.9.0.201705251638", "comment": { "comments": [ { "id": "454637", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure what the resolution was but issue can still be seen in SDK version {{9.0.0.v20200220034622}}", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-10T12:53:10.000+0000", "updated": "2020-03-10T12:53:10.000+0000" }, { "id": "457620", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/12029", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-17T14:46:44.000+0000", "updated": "2020-11-17T14:46:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }