Friday, September 2, 2011

[android-developers] Re: Honeycomb webview is going partially blank upon tapping on password field of the html page

Man this is annoying...

I wonder if I have to go into the onDraw method myself to prevent this
behavior.

On Aug 30, 2:11 pm, Michael <michaeldh...@gmail.com> wrote:
> Sorry, let me give a specific workflow for mine. It doesn't have to do
> with your scrolling issue, but I think its similar:
>
> 1) If the user decides to tap on the password field while the soft
> keyboard is not up, the password field gains full focus, but the page
> its on turns transparent apparently. The way I know that is because I
> have a loading screen behind all my pages.
>
> 2) If the user decides to close the keyboard via the "V" soft button
> at the navigation bar at the bottom. The same result shows or if they
> hit the "Go" button to dismiss the keyboard but remain on the page
> while the password field has focus.
>
> See if you get similar issues with the password field.
>
> ~Michael
>
> On Aug 30, 1:47 pm, Michael <michaeldh...@gmail.com> wrote:
>
>
>
>
>
>
>
> > This is exactly the same issue I'm having with my own android-web
> > project.
>
> > The reason I don't see it happen when the user types their user name
> > first, and their password second, is because the soft keyboard is
> > still open. But close the soft keyboard while on the password field
> > and you will see the issue guaranteed.
>
> > There were some hints from people that fields actually get changed by
> > android.webkit.WebTextView, which is the root cause. But I'm not
> > exactly sure on the resolution.
>
> > ~Michael
>
> > On Aug 26, 4:08 pm, Pradeep Phatak <pradeep.pha...@gmail.com> wrote:
>
> > > 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-honeyc...
>
> > > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment