Issue: In my Android application that uses webview for authentication,
the webview is going partially blank upon tapping on password field of
the html page.
If I just type user name and password on the html page, then the issue
is not seen.
Tested on: Samsung Galaxy tablet (GT-P7510) and Motorola Xoom
layout file snippet:
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="100"
>
<LinearLayout
android:layout_width="@dimen/layout_xlarge_width"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="20dip"
android:orientation="vertical">
<TextView
android:id="@+id/urlview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/test"
/>
<Spinner
android:id="@+id/profile"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
/>
</LinearLayout>
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
/>
</LinearLayout>
Code to setup webview:
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webView.clearCache(true);
webView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);
setUserAgent(getString(R.string.user_agent_suffix));
Other:
Adding support for zoom on webview or setting up touch and focus
listener did not help in resolving this issue.
Similar issue and test results are provided in the following post on
stackoverflow:
http://stackoverflow.com/questions/7097884/black-flickering-on-honeycomb-webview/7211264#7211264
Any help regarding this issue would be useful.
Thank you!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en