Note that there are some explanatory texts on larger screens.

plurals
  1. POBlack flickering on Honeycomb WebView
    primarykey
    data
    text
    <p>I've run into a problem when using <code>&lt;input type="password"&gt;</code> fields in a WebView on Honeycomb devices. Any time the view is scrolled, the screen flickers black and can even stay all black (except that it will draw the focused password field) once scrolling ends. I've seen this on all three Honeycomb tablets I've checked. </p> <p>I can load the same HTML in the Browser app and I do not see this issue. I've tried changing many of the settings on the WebSettings/WebChromeClient/WebViewClient of the WebView and had no luck there. I've loaded the code below on a Froyo tablet and this issue did not occur, so it seems like a Honeycomb specific issue.</p> <p>Has anyone seen this before? I'm at a loss on how to fix or workaround this issue currently.</p> <p>Here's a short code sample that reproduces the issue. Simply focus the password field and scroll up and down. There's a password type input field and a text type input field, just to show that the issue does not occur with the text type field. The <code>&lt;div&gt;</code> tag is there simply to make it easier to scroll around and see the issue, although the issue still occurs without the <code>&lt;div&gt;</code> tag.</p> <pre><code>import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class PasswordFieldTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WebView webview = new WebView(this); String html = "&lt;html&gt;&lt;body&gt;&lt;div style=\"with: 120%; height: 200%; border: 20px dashed black;\"&gt;" + "Password: &lt;input type=\"password\" name=\"passfield\"/&gt;&lt;br/&gt;" + "Text: &lt;input type=\"text\" name=\"textfield\"/&gt;" + "&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;"; webview.loadData(html, "text/html", "utf-8"); setContentView(webview); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload