{ "id": "136491", "key": "TIMOB-17958", "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": "2014-09-12T11:52:01.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:23.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nListView items appear with incorrect backgroundColor (or backgroundImage) after scrolling, when the ListView contains _both_ items with _and_ without a backgroundSelectedColor (or backgroundSelectedImage).\r\n\r\nh4. Steps to Reproduce\r\n# Run the following app\r\n# Scroll down to the end of the list\r\n# Scroll back up again to the top of the list\r\n# Some list items will have no blue background color anymore\r\n\r\n(The same thing happens with backgroundImage and backgroundSelectedImage instead of backgroundColor and backgroundSelectedColor).\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar items = [\r\n\t{ properties: { backgroundColor: 'blue', backgroundSelectedColor: 'red' } },\r\n\t{ properties: { backgroundColor: 'blue', backgroundSelectedColor: 'red' } },\r\n\t{ properties: { backgroundColor: 'blue', backgroundSelectedColor: 'red' } },\r\n\t{ properties: { backgroundColor: 'blue', backgroundSelectedColor: 'red' } },\r\n\t{ properties: { backgroundColor: 'blue', backgroundSelectedColor: 'red' } },\r\n\t{ properties: { backgroundColor: 'blue' } },\r\n\t{ properties: { backgroundColor: 'blue' } },\r\n\t{ properties: { backgroundColor: 'blue' } },\r\n\t{ properties: { backgroundColor: 'blue' } },\r\n\t{ properties: { backgroundColor: 'blue' } }\r\n];\r\n\r\nvar section = Ti.UI.createListSection({\r\n\titems: items\r\n});\r\n\r\nvar list = Ti.UI.createListView({\r\n\ttemplates: {\r\n\t\t'item': {\r\n\t\t\tproperties: {\r\n\t\t\t\theight: '100dp'\t\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tdefaultItemTemplate: 'item',\r\n\tsections: [section]\r\n});\r\n\r\nvar win = Ti.UI.createWindow({});\r\nwin.add(list);\r\nwin.open();\r\n{code} \r\n\r\nh4. Actual Results\r\nAfter scrolling some list items have the wrong background color.", "attachment": [], "flagged": false, "summary": "Android: ListView items not correctly updating backgroundColor / backgroundImage on cell reuse", "creator": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 3.3.0GA\r\nTitanium 3.2.3GA\r\nAndroid 4.3 - Genymotion Google Nexus 4\r\nAndroid 4.2.1 - Samsung Galaxy Nexus\r\nTitanium SDK: 3.3.0.GA\r\nTitanium CLI: 3.4.0,\r\nAndroid SDK: 4.2.2,4.4.2,\r\nOS X Version: 10.9.4,\r\nTitanium Studio: 3.4.0", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }