I did that also but if you invoke view.pageDown(true) inside
onPageFinished(Webview view, STring url ) it produces the same
behavior as explained before. The only way this method seems to work
(producing a very poor user-experience)  is by just invoking inside
the onPageFinished something like the following:

In the activity using a WebView object named webView:

class ViewUpdater implements Runnable {
    public void run() {
        webView.pageDown(true);
    }
}

and a class extending the WebViewClient ...

void onPageFInished(WebView view, String url) {
    view.postDelayed(new ViewUpdater(), 150);
    //The following does not work either.
    //view.post(new ViewUpdater());
}

But this produces that after reloading data with webview.loadData(),
the contents and the scrollbar are shown on top and just after 150
millisecs everything is scrolled down to the bottom which actually
produce a poor user experience.

Should I open a bug on this ?

Regards, Pablo

On 2 abr, 21:06, Mark Murphy <[email protected]> wrote:
> pperotti wrote:
> > Is there any way to be notified when a page has been completely loaded
> > using web view?
>
> Attach a WebViewClient to your WebView, and override onPageFinished() in
> the WebViewClient.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to