{ "id": "110645", "key": "AC-2434", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-03-19T20:04:14.000+0000", "created": "2013-03-05T20:15:31.000+0000", "labels": [ "android", "mapview", "scrollview" ], "versions": [], "issuelinks": [ { "id": "26766", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "111286", "key": "AC-2180", "fields": { "summary": "[Android] Google Maps API v2 does not work in a scrollview", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:28.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "h2. Problem\r\n\r\nA mapview in a scrollview should not leave behind a black box when scrolled.\r\nThis works in Android 4.x but NOT in Android 2.3.x\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar MapModule = require('ti.map');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar vert = Ti.UI.createScrollView({\r\n\tcontentHeight: 'auto',\r\n\tscrollType: 'vertical',\r\n\tshowVerticalScrollIndicator: true,\r\n\tlayout:'vertical',\r\n\tcanCancelEvents: false,\r\n\twidth: Ti.UI.SIZE\r\n});\r\n\r\nvar mapview = MapModule.createView({\r\n\theight: 250,\r\n mapType: MapModule.NORMAL_TYPE,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\r\n});\r\n\r\nvert.add(Ti.UI.createView({\r\n\theight: 200, width: 100, backgroundColor: 'red'\r\n}))\r\n\r\nvert.add(Ti.UI.createView({\r\n\theight: 150, width: 100, backgroundColor: 'blue'\r\n}))\r\n\r\nvert.add(mapview);\r\n\r\nvert.add(Ti.UI.createView({\r\n\theight: 300, width: 100, backgroundColor: 'green'\r\n}))\r\n\r\nwin.add(vert);\r\n\r\nwin.open();\r\n\r\n\r\n{code}", "attachment": [ { "id": "35918", "filename": "20130305_151000.jpg", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-05T20:15:31.000+0000", "size": 1788184, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "[Android] Google Maps API v2 does not work in a scrollview", "creator": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "environment": "Android 2.3.x, Ti 3.1.0 CI, Google Maps v2", "comment": { "comments": [ { "id": "243010", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The method of having scroll views within scroll views will not work (100% of the time) in android. The way that views are nested in the android OS does not permit flawless implementation of nested scroll views. For this reason, we cannot support this method. This isn't an issue with the Titanium platform, rather a limitation applied by the Android SDK. So unfortunately we are unable fix this problem from our end.\n\nRegards,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T20:03:50.000+0000", "updated": "2013-03-19T20:03:50.000+0000" }, { "id": "243463", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "body": "There are fixes natively if you follow this link. http://stackoverflow.com/questions/13746351/mapfragment-in-scrollview\n\nFollowing the idea from that discussion, one can also fix this in appcelerator code. (shown below for those who may find this problem with their own apps later on)\n\n{code}\nvar MapModule = require('ti.map');\n\nvar win = Ti.UI.createWindow({\n\tbackgroundColor: 'white'\n});\n\nvar vert = Ti.UI.createScrollView({\n\tcontentHeight: 'auto',\n\tscrollType: 'vertical',\n\tshowVerticalScrollIndicator: true,\n\tlayout:'vertical',\n\tcanCancelEvents: false,\n\twidth: Ti.UI.SIZE\n});\n\nvar mapview = MapModule.createView({\n\theight: 250,\n mapType: MapModule.NORMAL_TYPE,\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\n});\n\nvar con = Ti.UI.createView({width: 300, height: 250});\ncon.add(mapview);\ncon.add(Ti.UI.createView({backgroundColor: 'white', opacity: 0, touchEnabled: false}));\n\nvert.add(Ti.UI.createView({\n\theight: 200, width: 100, backgroundColor: 'red'\n}))\n\nvert.add(Ti.UI.createView({\n\theight: 150, width: 100, backgroundColor: 'blue'\n}))\n\nvert.add(con);\n\nvert.add(Ti.UI.createView({\n\theight: 300, width: 100, backgroundColor: 'green'\n}))\n\nwin.add(vert);\n\nwin.open();\n\n\n{code}", "updateAuthor": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-21T18:17:03.000+0000", "updated": "2013-03-21T18:17:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }