{ "id": "111195", "key": "TIMOB-13061", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-14T19:01:38.000+0000", "created": "2013-03-14T06:55:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-testadded", "triage" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-26T07:03: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": "Steps to reproduce:\r\n1. Run the test code. Row 2, Row 4 and Row 8 have no images.\r\n2. Scroll up and down the list view. \r\nExpect result: Row 2, Row 4 and Row 8 should always have no images.\r\nActual result: Row 2, Row 4 and Row 8 have random images showing.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n})\r\n\r\nvar listContainer = Ti.UI.createView({\r\n\theight : '90%'\r\n})\r\n\r\nwin.add(listContainer);\r\nwin.open();\r\n\r\n//Basic List View, default template\r\n//Checking to see how height is being set\r\nvar listView = Ti.UI.createListView({\r\n\tdefaultItemTemplate : Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT\r\n})\r\n//Both header and footer\r\nvar listSection1 = Ti.UI.createListSection({\r\n\theaderTitle : 'HEADER1',\r\n\tfooterTitle : 'FOOTER1'\r\n})\r\nlistSection1.setItems(getDataDefaultTemplate());\r\n//Only header\r\nvar listSection2 = Ti.UI.createListSection({\r\n\theaderTitle : 'HEADER2',\r\n})\r\n//Only footer\r\nvar listSection3 = Ti.UI.createListSection({\r\n\tfooterTitle : 'FOOTER3'\r\n})\r\n//Neither\r\nvar listSection4 = Ti.UI.createListSection({\r\n})\r\n\r\nif (Ti.Platform.osname == 'android') {\r\n\tlistSection2.setItems(getDataDefaultTemplate());\r\n\tlistSection3.setItems(getDataDefaultTemplate());\r\n\tlistSection4.setItems(getDataDefaultTemplate());\r\n}\r\nlistView.setSections([listSection1, listSection2, listSection3, listSection4]);\r\nlistContainer.add(listView);\r\n\r\nfunction getDataDefaultTemplate() {\r\n\tvar data = [];\r\n\tvar titleStr = '';\r\n\r\n\tfor ( i = 0; i < 10; i++) {\r\n\t\ttitleStr += 'title ';\r\n\t\tvar mod = i % 4;\r\n\t\tvar cellh = 50;\r\n\t\tvar acType = Ti.UI.LIST_ACCESSORY_TYPE_NONE;\r\n\t\tvar ci = 'KS_nav_ui.png';\r\n\t\tif (mod == 1) {\r\n\t\t\tacType = Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK;\r\n\t\t\tcellh = 70;\r\n\t\t\tci = 'KS_nav_views.png';\r\n\t\t} else if (mod == 2) {\r\n\t\t\tacType = Ti.UI.LIST_ACCESSORY_TYPE_DETAIL;\r\n\t\t\tci = 'junk';\r\n\t\t\tcellh = 90;\r\n\t\t} else if (mod == 3) {\r\n\t\t\tacType = Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE;\r\n\t\t\tcellh = 110;\r\n\t\t\tci = 'http://www.catravelservices.com/management/hotels/pictures/Mawamba_lodge_nature.jpg';\r\n\t\t}\r\n\t\tvar item = {\r\n\t\t\ttemplate : Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT,\r\n\t\t\tproperties : {\r\n\t\t\t\ttitle : titleStr + i,\r\n\t\t\t\timage : ci,\r\n\t\t\t\taccessoryType : acType,\r\n\t\t\t\titemId : 'Item ' + i + ' ' + acType,\r\n\t\t\t\theight : cellh\r\n\t\t\t}\r\n\t\t}\r\n\t\tdata.push(item)\r\n\t}\r\n\treturn data;\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ImageView: Images are not rendered correctly if the url is not valid", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "242189", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3965", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T07:56:45.000+0000", "updated": "2013-03-14T07:56:45.000+0000" }, { "id": "242410", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with the latest build.No images are shown in row 2,4 and 8 now even after scrolling.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130314163255\r\nTitanium  Studio:3.0.2.201302151605\r\nDevice: Samsung GALAXY Note (2.3.6)", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T08:46:38.000+0000", "updated": "2013-03-15T08:46:38.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }