{ "id": "112593", "key": "TIMOB-13529", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-10-04T17:16:59.000+0000", "created": "2013-04-09T18:43:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3.1", "backgroundimage", "listitem", "listview", "mobile" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-31T22:42:55.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": "*Problem*\r\nWhen trying to assign a custom backgroundImage to a ListItem, the property is not recognized.\r\n\r\n*Steps to Reproduce*\r\n1. copy and paste code into app.js\r\n2. download the background images, place into resources folder\r\n3. run code\r\n4. notice listViewRow does not have applied background image\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\r\nvar plainTemplate = {\r\n childTemplates: [{ // Title\r\n type: 'Ti.UI.Label', // Use a label for the title\r\n bindId: 'title', // Maps to a custom title property of the item data\r\n properties: { // Sets the label properties\r\n color: 'black',\r\n font: { fontFamily:'Arial', fontSize: '20dp', fontWeight:'bold' },\r\n left: '10dp', top: 0,\r\n },\r\n },\r\n { // Subtitle\r\n type: 'Ti.UI.Label', // Use a label for the subtitle\r\n bindId: 'subtitle', // Maps to a custom subtitle property of the item data\r\n properties: { // Sets the label properties\r\n color: 'gray',\r\n font: { fontFamily:'Arial', fontSize: '14dp' },\r\n left: '10dp', top: '25dp',\r\n }\r\n }\r\n ],\r\n};\r\n\r\n\r\nvar listView = Ti.UI.createListView({\r\n templates: { 'uncheck': plainTemplate},\r\n defaultItemTemplate: 'uncheck'\r\n});\r\n\r\nvar tasks = [\r\n {id: 'dishes', name: 'Do the Dishes', person: 'Wakko', icon: 'dishes.png'},\r\n {id: 'doggie', name: 'Walk the Dog', person: 'Dot', icon: 'doggie.png'}\r\n];\r\n\r\nvar data = [];\r\nfor (var i = 0; i < tasks.length; i++) {\r\n data.push({\r\n title : { text: tasks[i].name },\r\n subtitle : { text : tasks[i].person },\r\n properties : {\r\n itemId: tasks[i].id,\r\n backgroundImage: '/rowBg.jpg'\r\n }\r\n });\r\n}\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems(data);\r\nlistView.sections = [section];\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "37282", "filename": "app.js", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-09T18:43:27.000+0000", "size": 1692, "mimeType": "text/javascript" }, { "id": "37370", "filename": "ListViewTests.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-11T18:17:44.000+0000", "size": 2158225, "mimeType": "application/zip" }, { "id": "37371", "filename": "rowBg.jpg", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T18:20:29.000+0000", "size": 1846, "mimeType": "image/jpeg" }, { "id": "37372", "filename": "rowBg@2x.jpg", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T18:20:29.000+0000", "size": 3456, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ListView: ListItem property \"backgroundImage\" not recognized", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.v20130408154547\r\nMac OS X 10.8.3\r\niOS Simulator 6.1\r\niOS SDK 6.1\r\nXcode 4.6.1", "comment": { "comments": [ { "id": "247094", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Fixed the title (backgroundColor -> backgroundImage).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-11T17:15:17.000+0000", "updated": "2013-04-11T17:15:17.000+0000" }, { "id": "247117", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hans,\nIs it just me or is your rowBg.jpg just a white rectangle? I tried with a different image and it didn't work but if you could use a more recognizable color as your backgroundImage, I think that would be more helpful. Black or gray maybe? Would you mind attaching the image back here and I will pass along to engineering.\nThanks,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T18:09:53.000+0000", "updated": "2013-04-11T18:09:53.000+0000" }, { "id": "247121", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Carter,\n\nThe Image-Resources were just replaced with a slide gray background gradiant, thank you!\n\nGreets,\nHans", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-11T18:17:12.000+0000", "updated": "2013-04-11T18:17:12.000+0000" }, { "id": "247126", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Hans, moved to Ti-Mobile. Keep a watch on this ticket for updates.\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T18:22:55.000+0000", "updated": "2013-04-11T18:22:55.000+0000" }, { "id": "398067", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Wow, I opened that ticket in 2013, hehe. Resolving, since the providing use-case (row with background-image) is fixed these days.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-04T17:16:59.000+0000", "updated": "2016-10-04T17:16:59.000+0000" }, { "id": "416612", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Cannot Reproduce\", if you encounter any further problems please file a new ticket. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:42:55.000+0000", "updated": "2017-03-31T22:42:55.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }