{ "id": "167810", "key": "TIMOB-24708", "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": null, "resolutiondate": null, "created": "2017-05-19T14:31:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "validate" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-06-30T15:24:22.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{{mapView}} should be able to be added to an existing view without error.\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'gray', layout: 'vertical'});\r\n btn = Ti.UI.createButton({title: 'ADD MAP', height: '40dp'}),\r\n listView = Ti.UI.createListView(),\r\n sections = [],\r\n\r\n Map = require('ti.map'),\r\n mapView = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n region: {\r\n latitude: 37.3680, longitude: -121.9145,\r\n latitudeDelta: 0.1, longitudeDelta: 0.1\r\n }\r\n });\r\n\r\nvar header = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: Ti.UI.FILL, height: '200dp',\r\n }),\r\n numberSection = Ti.UI.createListSection({headerView: header}),\r\n numberData = [\r\n {properties: { title: 'One', color: 'white'}},\r\n {properties: { title: 'Two', color: 'white'}},\r\n {properties: { title: 'Three', color: 'white'}}\r\n ];\r\nnumberSection.setItems(numberData);\r\nsections.push(numberSection);\r\nlistView.sections = sections;\r\n\r\nbtn.addEventListener('click', function() {\r\n header.add(mapView);\r\n});\r\n\r\nwin.add(btn);\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Unable to add ti.map to a ListView", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 997, "state": "closed", "name": "2018 Sprint 03 SDK", "startDate": "2018-01-28T16:23:12.178Z", "endDate": "2018-02-11T16:23:00.000Z", "completeDate": "2018-02-12T04:22:49.354Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 }, { "id": 939, "state": "closed", "name": "2017 Sprint 17 SDK", "startDate": "2017-08-13T23:08:29.095Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:10:54.125Z", "originBoardId": 114 }, { "id": 975, "state": "closed", "name": "2017 Sprint 24 SDK", "startDate": "2017-11-19T18:59:24.352Z", "endDate": "2017-12-03T18:59:00.000Z", "completeDate": "2017-12-04T23:20:14.151Z", "originBoardId": 114 }, { "id": 944, "state": "closed", "name": "2017 Sprint 18 SDK", "startDate": "2017-08-27T21:13:39.311Z", "endDate": "2017-09-10T21:13:00.000Z", "completeDate": "2017-09-10T21:24:16.435Z", "originBoardId": 114 }, { "id": 978, "state": "closed", "name": "2017 Sprint 25 SDK", "startDate": "2017-12-03T23:22:15.144Z", "endDate": "2017-12-17T23:22:00.000Z", "completeDate": "2017-12-18T22:32:02.770Z", "originBoardId": 114 }, { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 }, { "id": 951, "state": "closed", "name": "2017 Sprint 20 SDK", "startDate": "2017-09-24T17:50:18.277Z", "endDate": "2017-10-08T17:50:00.000Z", "completeDate": "2017-10-09T20:38:07.840Z", "originBoardId": 114 }, { "id": 984, "state": "closed", "name": "2017 Sprint 26 SDK", "startDate": "2017-12-17T22:34:59.726Z", "endDate": "2017-12-31T22:34:00.000Z", "completeDate": "2018-01-02T16:57:05.655Z", "originBoardId": 114 }, { "id": 985, "state": "closed", "name": "2018 Sprint 01 SDK", "startDate": "2017-12-31T16:58:54.631Z", "endDate": "2018-01-14T16:58:00.000Z", "completeDate": "2018-01-17T22:44:27.028Z", "originBoardId": 114 }, { "id": 990, "state": "closed", "name": "2018 Sprint 02 SDK", "startDate": "2018-01-14T22:48:43.544Z", "endDate": "2018-01-28T22:48:00.000Z", "completeDate": "2018-01-29T16:22:42.911Z", "originBoardId": 114 }, { "id": 959, "state": "closed", "name": "2017 Sprint 21 SDK", "startDate": "2017-10-08T20:38:15.130Z", "endDate": "2017-10-22T20:38:00.000Z", "completeDate": "2017-10-24T23:55:56.605Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "420052", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Does it work with other docs? [Docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView-property-headerView] say the {{headerView}} is creation-only on Android (which would of cause be nice to be fixed for parity).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-19T17:45:01.000+0000", "updated": "2017-05-19T17:45:01.000+0000" }, { "id": "428773", "author": { "name": "rwhite", "key": "rwhite", "displayName": "Rick White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can I get an estimate on when this will be fixed? JB Hunt needs this for a production app, and they have been waiting since May. Thanks.\r\n", "updateAuthor": { "name": "rwhite", "key": "rwhite", "displayName": "Rick White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-06T03:26:59.000+0000", "updated": "2017-10-06T03:26:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }