{ "id": "148932", "key": "TIMOB-19088", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-07-13T22:20:32.000+0000", "created": "2015-06-18T14:45:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "listview" ], "versions": [], "issuelinks": [ { "id": "48387", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "119507", "key": "TIMOB-15049", "fields": { "summary": "Android: TableView row UI is not getting updated if table or row have height set to Ti.UI.SIZE", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "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": "2017-03-27T20:54:57.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": "Hi, \r\n\r\nI have added a headerView to TableViewSection but on android it doesn't shows while on iOS works fine. \r\n\r\nHere is the code, it needs to be added in index.js\r\n\r\nvar createHeaderViewSection = function(args) {\r\n Ti.API.info('create header view section');\r\n var headerView = Ti.UI.createView({\r\n left: 0,\r\n height: '18dp',\r\n backgroundImage: '/images/timeline_date.png'\r\n //backgroundColor: '#0000ff'\r\n }),\r\n label = Ti.UI.createLabel({\r\n top: '2dp',\r\n left: '15dp',\r\n textAlign: 'center',\r\n text: args.day,\r\n color: '#fff',\r\n font: { fontSize: '14dp'}\r\n });\r\n headerView.add(label);\r\n return headerView;\r\n};\r\n\r\nvar sectionFruit = Ti.UI.createTableViewSection({ headerView: createHeaderViewSection({day: \"02-02-2016\"}) });\r\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\r\n\r\nvar sectionVeg = Ti.UI.createTableViewSection({ headerTitle:'Title' });\r\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Carrots' }));\r\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Potatoes' }));\r\n\r\nvar sectionFruit_02 = Ti.UI.createTableViewSection({ headerView: createHeaderViewSection({day: \"03-02-2016\"}) });\r\nsectionFruit_02.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\nsectionFruit_02.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\r\n\r\nvar sectionFruit_03 = Ti.UI.createTableViewSection({ headerView: createHeaderViewSection({day: \"03-02-2016\"}) });\r\nsectionFruit_03.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\nsectionFruit_03.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\nsectionFruit_03.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\r\n\r\nvar tb= Ti.UI.createTableView({\r\n height: Ti.UI.SIZE,\r\n backgroundColor: \"#ff0000\"\r\n});\r\ntb.setData([sectionFruit, sectionVeg, sectionFruit_02, sectionFruit_03]);\r\n$.index.add(tb);\r\n$.index.open();", "attachment": [ { "id": "55884", "filename": "2015-06-18_1649.png", "author": { "name": "cristy86_upm", "key": "cristy86_upm", "displayName": "Cristian Petra", "active": true, "timeZone": "Europe/Bucharest" }, "created": "2015-06-18T14:02:00.000+0000", "size": 85170, "mimeType": "image/png" }, { "id": "55885", "filename": "iOS Simulator Screen Shot 18.06.2015, 16.44.50.png", "author": { "name": "cristy86_upm", "key": "cristy86_upm", "displayName": "Cristian Petra", "active": true, "timeZone": "Europe/Bucharest" }, "created": "2015-06-18T14:01:59.000+0000", "size": 64037, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Alloy- HeaderView element not showing in android for TableViewSection", "creator": { "name": "cristy86_upm", "key": "cristy86_upm", "displayName": "Cristian Petra", "active": true, "timeZone": "Europe/Bucharest" }, "subtasks": [], "reporter": { "name": "cristy86_upm", "key": "cristy86_upm", "displayName": "Cristian Petra", "active": true, "timeZone": "Europe/Bucharest" }, "environment": null, "closedSprints": [ { "id": 441, "state": "closed", "name": "2015 Sprint 14 SDK", "startDate": "2015-07-04T01:00:23.204Z", "endDate": "2015-07-18T01:00:00.000Z", "completeDate": "2015-07-28T06:37:47.083Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "415935", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate, the relevant ticket is linked above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T20:54:57.000+0000", "updated": "2017-03-27T20:54:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }