Webview Going Blank Upon Double Tapping On Password Field Of Html Page On Android Tablet
Issue: webview is going blank upon double tapping on password field of html page on Android Tablet. Just typing user name and password on the html page has no problem. Tested on: S
Solution 1:
I had the same issue and considered using an ugly html trick by simulating the password input with 2 text input:
<div style="position: relative;">
<input type="text"id="hiddenPwd" onkeyup="$('#fakePwd')[0].value = '*************'.substr(0, $('#hiddenPwd')[0].value.length);" />
<div style="position:absolute; top: 0; left: 0;"><input type="text"id="fakePwd" onfocus="$('#hiddenPwd')[0].focus();"/></div>
</div>
Works nicely, the only drawback is that the cursor is not showing...
Solution 2:
I had some problems in my application. Seems what bug affects all Honeycomb tablets.
The problem goes away, if you turn on hardware acceleration. But hardware accelerated WebView has problem with performance and transparency.
For me works fine software rendered WebView on hardware accelerated window:
mWindow.setFlags(
Window.LayoutParam.FLAG_HARDWARE_ACCELERATED,
Window.LayoutParam.FLAG_HARDWARE_ACCELERATED);
...
mWebView.setLayerType(View.LAYER_TYPE_SOFTWARE);
PS: Of course you can also enable hardware acceleration for entire application in your manifest file.
Post a Comment for "Webview Going Blank Upon Double Tapping On Password Field Of Html Page On Android Tablet"