{ "id": "64067", "key": "TIMOB-3435", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-07T00:31:23.000+0000", "created": "2011-04-15T03:45:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "dr-list", "module_tableview", "parity", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "15590", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87509", "key": "TIMOB-7916", "fields": { "summary": "Android: TableViewSection - For-loop counter does not increment properly when added to a TableViewSection", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19095", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "97787", "key": "TIMOB-10087", "fields": { "summary": "Android: TableView - Headers appear with incorrect labels on Android", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-16T18:54:31.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": "{html}

HeaderView option works on a TableView, but not on a\r\nTableViewSection on Android.

\r\n

Assigning a custom view to a TableViewSection.headerView will\r\nnot result in that view being drawn on display.
\r\nIt does work on iOS without problems, I would love to see it\r\nworking on Android too so I could do a nice GUI.

\r\n

Documentation doesn't seem to mention anything related to\r\nthis.
\r\nThe code I tested with is similar to KitchenSink demo. I can't run\r\nthe KitchenSink demo on android, since it
\r\nwill not install due to the fact it can't find a required library\r\nfor google maps. There's no error display when
\r\ntrying to install KitchenSink on my Android phone. (Yes I\r\ndownloaded the latest version from github)

\r\n

Expected output (similar to iOS):
\r\nhttp://imm.io/4yR0

\r\n

Actual output (on Android):
\r\nhttp://imm.io/4yR1

\r\n

Titanium SDK 1.6.1
\r\nTitanium Developer 1.2.2
\r\nCompiled for Android SDK 2.2, Android tools version 10

\r\n

Code attached for test, simple app.js
\r\nhttps://gist.github.com/886885

\r\n

Thank you for your time.

{html}", "attachment": [], "flagged": false, "summary": "TableViewSection.headerView broken on Android", "creator": { "name": "radu.v", "key": "radu.v", "displayName": "Radu.V", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "radu.v", "key": "radu.v", "displayName": "Radu.V", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "160973", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h4.Associated HD ticket\r\nA Customer relies on this, http://appc.me/c/APP-229546\r\n\r\nh4.Environment\r\n{panel}\r\n Product: Mobile\r\n Titanium SDK: Mobile 1.6.2\r\n Platform OS: Android\r\n Platform OS Version: 2.1, 2.2, 2.3\r\n{panel}", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-07-28T08:30:34.000+0000", "updated": "2011-07-28T08:30:34.000+0000" }, { "id": "163706", "author": { "name": "pixelr", "key": "pixelr", "displayName": "Tamas Rakoczi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We also need this functionality in our company's internal app, would be great to have it finally fixed on Android.", "updateAuthor": { "name": "pixelr", "key": "pixelr", "displayName": "Tamas Rakoczi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-23T00:22:37.000+0000", "updated": "2011-08-23T00:22:37.000+0000" }, { "id": "176326", "author": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This does still not work with:\r\n\r\nTitanium SDK 1.8.0.1RC\r\nPlatform OS: Android 2.3.3\r\n\r\nThis works on iOS as acpected", "updateAuthor": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-16T07:09:35.000+0000", "updated": "2011-12-16T07:09:35.000+0000" }, { "id": "184153", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. Confirmed with:\r\nTiSDK 1.8.1\r\nAndroid Emulator 2.3.3, V8\r\n\r\nh4. Steps to reproduce:\r\nStep 1: run the code below\r\nStep 2: notice that the pink headerView does not display in Android (it works fine in iOS).\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar tableView = Ti.UI.createTableView();\r\n\r\nvar data = [];\r\n\r\nfor (var c=0;c<4;c++)\r\n{\r\n\tdata[c] = Ti.UI.createTableViewSection({\r\n\t\t// headerTitle:'Group '+(c+1),\r\n\t\theaderView: Ti.UI.createView({backgroundColor: 'pink', height: 40})\r\n\t});\r\n\tfor (var x=0;x<10;x++)\r\n\t{\r\n\t\tdata[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1)}));\r\n\t}\r\n}\r\n\r\ntableView.data = data;\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-24T08:02:44.000+0000", "updated": "2012-02-24T08:11:48.000+0000" }, { "id": "185377", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120307090205\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.9.201202141208\r\nDevice: Galaxy Tab 10.1 (3.2)\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-07T11:22:46.000+0000", "updated": "2012-03-07T11:22:46.000+0000" }, { "id": "223827", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "Can we reopen this one. It crashes on TiTableViewHeaderItem.getRowData wih a null pointer exception!\r\nThis is normal as in the case of a custom headerView, rowView is null.\r\nSDK build: 3.1.0 master\r\nRuntime: V*\r\nTitanium Studio, build: 1.0.9.201202141208\r\nDevice: Simulator", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-16T18:37:17.000+0000", "updated": "2012-10-16T18:37:17.000+0000" }, { "id": "223830", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "Even fixing this it still crashes because cell reuse. The custom headerView is not removed from its parent view on reuse. I am not sure on how to fix this", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-16T18:54:31.000+0000", "updated": "2012-10-16T18:54:31.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }