Inna
Inna

Reputation: 367

WebView - listener when scrolling is done?

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...

Upvotes: 1

Views: 1381

Answers (1)

Femi
Femi

Reputation: 64700

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.

Upvotes: 1

Related Questions