{ "id": "173102", "key": "TIMOB-26887", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2019-03-08T03:37:02.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "TableView", "android", "engSchedule", "header", "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-20T00:24:30.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": "*Summary:*\r\nThe {{Ti.UI.TableView}} properties \"headerTitle\" and \"footerTitle\" can only be set via creation properties on Android. They cannot be changed dynamically afterwards.\r\n\r\niOS supports changing the title dynamically. And our documentation states that they can be changed on all platforms as well. Android should be changed to match iOS' behavior.\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView-property-headerTitle\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView-property-footerTitle\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Watch the header and footer text in the table view.\r\n# Notice header/footer never changes. (Below code will update them every 2 seconds.)\r\n\r\n{code:javascript}\r\nvar rows = [];\r\nfor (var index = 1; index <= 5; index++) {\r\n\trows.push(Ti.UI.createTableViewRow({ title: \"Row \" + index }));\r\n}\r\n\r\nvar window = Ti.UI.createWindow({\r\n\tfullscreen: Ti.App.iOS ? true : false,\r\n});\r\nvar tableView = Ti.UI.createTableView({\r\n\theaderTitle: \"Header\",\r\n\tdata: rows,\r\n\tfooterTitle: \"Footer\",\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL,\r\n});\r\ntableView.headerTitle = \"Header (Updated)\";\r\ntableView.footerTitle = \"Footer (Updated)\";\r\nwindow.add(tableView);\r\nwindow.open();\r\n\r\nvar updateCount = 0;\r\nsetInterval(function() {\r\n\tupdateCount++;\r\n\ttableView.headerTitle = \"Header (\" + updateCount + \")\"; \r\n\ttableView.footerTitle = \"Footer (\" + updateCount + \")\"; \r\n}, 2000);\r\n{code}\r\n\r\n*Work-Around:*\r\nUse the \"headerView\" and \"footerView\" instead.\r\n", "attachment": [], "flagged": false, "summary": "Android: TableView \"headerTitle\" and \"footerTitle\" cannot be changed after creation", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "457338", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12029", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-26T16:02:12.000+0000", "updated": "2020-10-26T16:02:12.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }