GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Resolved |
Resolution | Hold |
Resolution Date | 2014-05-19T21:25:06.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2014 Sprint 03, 2014 Sprint 03 API, Release 3.2.3 |
Components | Android |
Labels | 3.2.0GA, android, flicker, look1, module_webview, qe-testadded, scroll, triage, webview |
Reporter | Carlos Luis Seva |
Assignee | Hieu Pham |
Created | 2014-02-01T17:39:40.000+0000 |
Updated | 2017-03-24T18:24:02.000+0000 |
Webview with transparent or gradient background flickers when scrolling down for the first time in Android with SDK 3.2.0 GA. Once you scroll to the bottom and then scroll up again not produces this behavior. If webview backgroundColor is set with a color as 'white' or '#FFFFFF' works fine.
Detected using SDK 3.2.0 GA and 3.2.X versions on Android devices (Samsung Galaxy S III Mini, Samsung Galaxy Tab 3, bq Aquaris 5). With SDK 3.1.3 GA doesn't occur this behavior.
Test case:
var window = Titanium.UI.createWindow({
title: 'Test',
fullscreen: true,
exitOnClose: true,
backgroundColor: 'white'
});
var view = Ti.UI.createView();
var webview = Titanium.UI.createWebView({
backgroundColor: 'transparent',
url: '/test.html'
});
view.add(webview);
window.add(view);
window.open();
Moving this ticket to engineering as I can reproduce this issue on Galaxy Nexus device with 3.2.0 release. Note that this is a regression as there is no flickering when I recompile application with 3.1.3 release.
Video that shows this issue on Samsung Galaxy Tab 3: http://www.youtube.com/watch?v=Nv0zkh4ZKUY
I can reproduce this on 4.x device on both 3.2.0.GA and 3.1.3.GA. This is not a regression. I will submit a PR to fix this shortly.
master PR: https://github.com/appcelerator/titanium_mobile/pull/5320
Tested using 3.3.0.20140207153316 and now works properly. Thanks everyone!
While you're at it, could you also solve this related issue? http://premius.net/blog/andoid/118-android-webview-transparent-background-for-android-2-3-and-4-x.html It's a hack, but indeed on the following device it needs the background and acceleration to be re-set after load:
Workaround for the original issue by the way:
Verified the fix, hence closing the issue. Environment used: Device : Google Nexus 5, Android Version: 4.4.2 SDK: 3.2.3.v20140324164913 CLI version : 3.2.1 OS : MAC OSX 10.9.2 Alloy: 1.3.1 ACS: 1.0.14 npm:1.3.2 Appcelerator Studio, build: 3.2.3.201403190645 titanium-code-processor: 1.1.0 XCode : 5.1
[~pmishra], could you please reopen the ticket since we need a new fix now the original one has been reverted?
There are multiple workarounds for this issue. We are not planning to fix this since the fix has side effects.
Please, try to solve this issue. It's very important for my app. Users have been complaining for this reason. Thanks
Resolving as "hold" for now.