{ "id": "88514", "key": "TIMOB-8200", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-30T21:54:14.000+0000", "created": "2012-03-22T13:58:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:14:33.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": "h6.Issue\r\nWhen using android:hardwareAccelerated=\"true\" (most likely in android manifest), the transparency of the WebView is lost and replaced by plain white background. Not all devices seem affected by this issue.\r\n\r\nh6.Non affected devices\r\nDroid Razr 2.3.5\r\nSamsung Galaxy Tab p1000, Froyo(2.2)\r\n\r\nh6.Affected device\r\nAsus Transformer TF101, Honeycomb(ver3.1)\r\n\r\nh6.Repro sequence\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundImage : 'KS_nav_ui.png', //'/images/guide_fond_notice.png',\r\n\tnavBarHidden : true,\r\n\texitOnClose : true,\r\n\ttop : '0dp',\r\n\tleft : '0dp',\r\n\tright : '0dp',\r\n\tbottom : '0dp'\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\tbackgroundColor : 'transparent',\r\n\thtml : 'This WebView\\'s Background Must Be transparent',\r\n\ttop : '50dp',\r\n\tleft : '470dp',\r\n\tright : '0dp',\r\n\tbottom : '50dp'\r\n});\r\nwin.add(webView);\r\n\r\nwin.open(); \r\n{code}\r\n\r\nh6.Setting HW accelerated via Tiapp.xml\r\n{code:title=Tiapp.xml}\r\n\r\n\r\n v8\r\n \r\n true\r\n true\r\n true\r\n true\r\n false\r\n \r\n 1.8.2\r\n com.appcelerator.com\r\n AcScreenConfs\r\n 1.0\r\n egomez\r\n http://\r\n not specified\r\n 2012 by egomez\r\n appicon.png\r\n false\r\n false\r\n default\r\n false\r\n false\r\n false\r\n true\r\n 95f32b4c-0c20-4f0e-86d5-3bc8ece20641\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n Ti.UI.UPSIDE_PORTRAIT\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n \r\n 11\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh6.Or via Manifest\r\n{code:title=platform/android/AndroidManifest.xml}\r\n\r\n\r\n 11\r\n\t\r\n\r\n\r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: webViews has a white background when turning on hardware acceleration ", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDKs: 1.8.2, 2.0\r\nAndroid OS 2, 3, 4\r\n", "comment": { "comments": [ { "id": "189360", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a known issue on Android Honeycomb SDK (3.x). \r\nhttp://code.google.com/p/android/issues/detail?id=14749", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T15:40:43.000+0000", "updated": "2012-03-30T15:40:43.000+0000" }, { "id": "293148", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I guess now fixed by: https://github.com/appcelerator/titanium_mobile/pull/5320/files", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-02-14T08:26:50.000+0000", "updated": "2014-02-14T08:26:50.000+0000" }, { "id": "293150", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Workaround that disabled acceleration by using an almost transparent backgroundColor:\r\n\r\n{code}\r\nbackgroundColor = '#01FFFFFF';\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-02-14T08:37:03.000+0000", "updated": "2014-02-14T08:37:03.000+0000" }, { "id": "340424", "author": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "body": "This issue, or a variation of it, is still plaguing some phones, namely:\r\n\r\n* Sony ST21i running android v4.0.4\r\n* Sony Xperia Arc S (lt18i) running android v4.0.4\r\n\r\nThe bug only manifested after we changed `` to `true` and set `dp` on our tiapp.xml.\r\n\r\nWe've used @Fokke's workaround but it turned the background black on these phones. On a Nexus 5 the background does show as transparent.\r\n\r\nPS: we don't use 'android:hardwareAccelerated' at all.", "updateAuthor": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "created": "2015-01-23T15:53:06.000+0000", "updated": "2015-01-23T17:03:26.000+0000" }, { "id": "415647", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:14:33.000+0000", "updated": "2017-03-24T18:14:33.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }