{ "id": "118643", "key": "TIMOB-15015", "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": "15821", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15823", "description": "2014 Sprint 02 API", "name": "2014 Sprint 02 API", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-11-17T14:30:43.000+0000", "created": "2013-08-16T06:57:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "headerview", "qe-closed-3.3.0", "qe-testadded", "tableview", "triage" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2020-11-17T14:30:48.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": "In the following example, the headerView doesn't show:\r\n\r\n{code:javascript}\r\nvar w = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar t = Ti.UI.createTableView();\r\nvar d = [];\r\n\r\nfor (var i = 0; i < 25; i++) {\r\n d.push(Ti.UI.createTableViewRow({\r\n title: 'Row ' + i\r\n }));\r\n}\r\n\r\nt.setData(d);\r\nt.headerView = Ti.UI.createView({\r\n width: Ti.UI.FILL,\r\n height: 50,\r\n backgroundColor: 'red'\r\n});\r\n\r\nw.add(t);\r\nw.open();\r\n{code}\r\n\r\nBut if you set the headerView before calling setData it *does*.", "attachment": [], "flagged": false, "summary": "Android: TableView.headerView cannot be set after setting data", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1.2\r\nMac OS X 10.8.4\r\nAndroid 4.4 (device)", "closedSprints": [ { "id": 1210, "state": "closed", "name": "2020 Sprint 23", "startDate": "2020-11-09T17:49:00.000Z", "endDate": "2020-11-20T17:49:00.000Z", "completeDate": "2020-11-20T17:46:00.641Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "269073", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1.2 GA and 3.2 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-30T18:14:12.000+0000", "updated": "2013-08-30T18:14:12.000+0000" }, { "id": "284359", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added support for setting headerView and footerView after setData.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5122", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-15T13:31:02.000+0000", "updated": "2013-12-15T13:31:02.000+0000" }, { "id": "291310", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional test case: \n{code}\nvar w = Ti.UI.createWindow({\n backgroundColor: '#fff'\n});\n \nvar t = Ti.UI.createTableView();\nvar d = [];\n \nfor (var i = 0; i < 25; i++) {\n d.push(Ti.UI.createTableViewRow({\n title: 'Row ' + i\n }));\n}\n \nt.setData(d);\nt.setHeaderView(Ti.UI.createView({\n width: Ti.UI.FILL,\n height: 50,\n backgroundColor: 'red'\n}));\n\nt.footerView = Ti.UI.createView({\n width: Ti.UI.FILL,\n height: 50,\n backgroundColor: 'red'\n});\n \nw.add(t);\nw.open();\n{code}", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T02:16:39.000+0000", "updated": "2014-02-05T02:16:39.000+0000" }, { "id": "310143", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "TableView.headerView is getting set after setting data in TableView\r\n\r\nVerified the fix on :\r\nTested on:\r\nDevice: LG-P970, Android version: 4.0.4\r\nSDK: 3.3.0.v20140619164112\r\nCLI version : 3.3.0-rc\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-rc\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201406171619\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-20T08:32:20.000+0000", "updated": "2014-06-20T08:32:20.000+0000" }, { "id": "457503", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As of the https://github.com/appcelerator/titanium_mobile/pull/12029 I am unable to see any of the rows just the header and footer ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-12T15:50:25.000+0000", "updated": "2020-11-12T15:50:25.000+0000" }, { "id": "457618", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket it as this is an unrelated issue, will be fixed in: https://github.com/appcelerator/titanium_mobile/pull/12029", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-17T14:30:25.000+0000", "updated": "2020-11-17T14:30:25.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }