{ "id": "151851", "key": "TIMOB-19895", "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": null, "resolutiondate": null, "created": "2015-10-08T12:01:11.000+0000", "priority": null, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:24.000+0000", "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" } }, "components": [], "description": "If ListItem's background color are not the same, scroll to ListView's bottom, and then back to top, some of those ListItem's selectedBackgroundColor will not show when clicked.\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar template = {\r\n\tproperties : {\r\n\t\tselectedBackgroundColor : '#2990FE'\r\n\t},\r\n};\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttemplates : {\r\n\t\t'testTemplate' : template\r\n\t},\r\n\tdefaultItemTemplate : 'testTemplate'\r\n});\r\n\r\nvar data = [];\r\nfor (var i = 0; i < 30; i++) {\r\n\tdata.push({\r\n\t\tproperties : {\r\n\t\t\tbackgroundColor : (i % 2) ? '#44112233' : 'transparent',\r\n\t\t},\r\n\t});\r\n}\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems(data);\r\nlistView.sections = [section];\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ListItem's selectedBackgroundColor dissapeared", "creator": { "name": "wilsonliaw", "key": "wilsonliaw", "displayName": "Wilson Liaw", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "wilsonliaw", "key": "wilsonliaw", "displayName": "Wilson Liaw", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "OSX Version 10.10.5\r\nTitanium SDK 5.0.1.GA, 5.0.2.GA", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }