How to listen for a WebView finishing loading a URL?

前端 未结 17 747
予麋鹿
予麋鹿 2020-11-22 05:40

I have a WebView that is loading a page from the Internet. I want to show a ProgressBar until the loading is complete.

How do I listen for

17条回答
  •  伪装坚强ぢ
    2020-11-22 06:30

    this will been called before he start loading the page (and get the same parameters as onFinished())

    @Override
    public void onPageCommitVisible(WebView view, String url) {
       super.onPageCommitVisible(view, url);
    }
    

提交回复
热议问题