1

onPageFinished() (in WebViewClient) is called when the WebView is done with loading the url, but not with scrolling down ( WebView.scrollTo() ).

Is there any way to have a listener when scrolling is done?

Waiting some time like 100ms works mostly, but is a very bad solution...

H9kDroid
  • 1,814
  • 15
  • 17
Inna
  • 367
  • 3
  • 12

1 Answers1

1

Not sure there is anything in the standard WebChromeClient or WebClient interfaces that will let you do that. You will probably need to register a custom javascript object and then use a callback in the page (unless I'm wrong there are DOM level events you can listen for) to notify you when the scroll is done.

Femi
  • 64,273
  • 8
  • 118
  • 148