{ "id": "122177", "key": "TIMOB-15682", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-07T18:42:31.000+0000", "created": "2013-11-07T00:38:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "api", "module_listview", "qe-manualtest", "qe-testadded", "regression" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-10-16T00:59:22.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": "ListView doesn't update items correctly when multiple templates are used. This is a regression (Works in 3.1.3.GA, fails with latest master).\r\nTesting code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\n\r\nvar viewTemplate = {\r\n childTemplates: [\r\n {\r\n type: 'Ti.UI.View',\r\n bindId: 'View',\r\n properties: {\r\n height: '50dp',\r\n backgroundColor: 'red'\r\n }\r\n }\r\n ]\r\n};\r\n \r\nvar items = [\r\n { template: 'View'}\r\n];\r\n \r\nfor ( var i = 0; i < 20; i++) {\r\n items.push({ properties: { title: 'Item', height: '50dp'}});\r\n}\r\n \r\nvar section = Ti.UI.createListSection({\r\n items: items\r\n});\r\n \r\nvar listView = Ti.UI.createListView({\r\n\tbackgroundColor: 'black',\r\n templates: {\r\n 'View': viewTemplate\r\n },\r\n sections: [ section ]\r\n});\r\n \r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\n1. Run code. There should be only one red view in the list view - The first item.\r\n2. Scroll back and forth. Notice the red view changed position.\r\n\r\nExpected Result: There should only be one red view in the list view, and scrolling shouldn't modify its position.", "attachment": [], "flagged": false, "summary": "Android: ListView not updating items properly", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "278551", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/4924", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T00:43:21.000+0000", "updated": "2013-11-07T00:43:21.000+0000" }, { "id": "278829", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. The red view does not move on scrolling the listview.\r\nClosing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201311080232\r\nTi SDK : 3.2.0.v20131108155642\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0\r\nCLI - 3.2.0\r\nDevice: Samsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-09T00:53:33.000+0000", "updated": "2013-11-09T00:53:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }