{ "id": "125562", "key": "TIMOB-16337", "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": "2014-01-31T21:48:22.000+0000", "created": "2014-01-29T08:24:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ipass1", "qe-3.2.1" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T21:36:34.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "There is different behavior for setting of BackgroundColor for listView on iOS6 and iOS7 Versions.\r\n\r\nThis is not a regression. Since issue occurs on 3.2.0.GA also.\r\n\r\nSteps to reproduce:\r\n\r\n1.Install KS and run.\r\n2.Go to BaseUI>View>ListView>Basic Functions> Background Colors & Scroll Indicator\r\n3. Click on the 'next' button \r\n\r\n\r\nExpected Result:\r\n\r\n2. A new window should get displayed with 'ScrollIndicator=true'. The first listitem in the listview 'My background is yellow' should have a yellow background.The listview should have 100 listitems and no background. \r\n\r\n3. The background of listview turns red(its plain and not grouped).Listitem with yellow background remains yellow.'ScrollIndicator=false' \r\n\r\n\r\nActual Result:\r\n\r\n3.The background of listview does not turns red.\r\nPlease refer to screenshots attached for both iOS6 and iOS7 version(theres is difference in behavior).", "attachment": [ { "id": "45454", "filename": "ios6.png", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T08:24:16.000+0000", "size": 91473, "mimeType": "image/png" }, { "id": "45455", "filename": "ios7.png", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T08:24:16.000+0000", "size": 73602, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: ListView: BackgroundColor not working properly", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Test Environment:\r\n\r\nAppc Studio:3.2.1.201401281409\r\nSdk:3.2.1.v20140128171647\r\nalloy:1.3.1-beta4\t\r\ntitanium:3.2.1-beta3\r\nacs:1.0.12\r\ntitanium-code-processor:1.1.0\r\nOsx: Maverick 10.9\r\nXcode:5.0.2\r\nDevice:Iphone5c(v7.0.4),Ipod Touch3(v6.1.3),iPad Air(v7.0.4)", "comment": { "comments": [ { "id": "290706", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is just iOS 7 behavior difference, by default on iOS 7 the background color of rows is white and on iOS 6 this is transparent. So if you set a background color on the listview on iOS 7 this would only be applied to the listview background itself and not on the row. if you explicitly set the backgroundColor to `transparent` the listview backgroundColor can be seen.\n\nYou can see the behavior in the following code.\n{code}\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\nvar listView = Ti.UI.createListView();\nvar sections = [];\nlistView.backgroundColor = 'blue';\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});\nvar fruitDataSet = [\n {properties: { title: 'Apple',backgroundColor: 'transparent'}},\n {properties: { title: 'Banana' ,backgroundColor: 'transparent'}}\n];\nfruitSection.setItems(fruitDataSet);\nsections.push(fruitSection);\n\nvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'});\nvar vegDataSet = [\n {properties: { title: 'Carrots',backgroundColor: 'red'}},\n {properties: { title: 'Potatoes',backgroundColor: 'yellow'}},\n];\nvegSection.setItems(vegDataSet);\nsections.push(vegSection);\n\nlistView.sections = sections;\nwin.add(listView);\nwin.open();\n\nvar fishSection = Ti.UI.createListSection({ headerTitle: 'Fish'});\nvar fishDataSet = [\n {properties: { title: 'Cod'}},\n {properties: { title: 'Haddock'}},\n];\nfishSection.setItems(fishDataSet);\nlistView.appendSection(fishSection);\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-31T21:48:09.000+0000", "updated": "2014-01-31T21:48:09.000+0000" }, { "id": "291602", "author": { "name": "vincentfts", "key": "vincentfts", "displayName": "Vincent Jousse", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there a way to keep the item background color when an item is selected (for exemple red for carrots) ?", "updateAuthor": { "name": "vincentfts", "key": "vincentfts", "displayName": "Vincent Jousse", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-02-06T04:02:03.000+0000", "updated": "2014-02-06T04:02:03.000+0000" }, { "id": "416266", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T21:36:34.000+0000", "updated": "2017-03-29T21:36:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }