2

我與xWalkWebViewxWalkWebView加載頁面時?

工作,我想知道相當於該代碼使用人行橫道

webView.setWebViewClient(new WebViewClient() { 

     @Override 
     public void onPageStarted(WebView view, String url, Bitmap favicon) { 
      super.onPageStarted(view, url, favicon); 
      // progressBar.setVisibility(View.VISIBLE); 
     } 

     @Override 
     public void onPageFinished(WebView view, String url) { 
      super.onPageFinished(view, url); 
      // progressBar.setVisibility(View.GONE); 
     } 

     @Override 
     public void onReceivedHttpAuthRequest(WebView view, 
        HttpAuthHandler handler, String host, String realm) { 


     } 
}); 

回答

0

謝謝,你也可以發送電子郵件至

人行橫道的幫助發問@ lists.crosswalk-project.org

對於此問題:

mXWalkView.setUIClient(new XWalkUIClient(mXWalkView) { 
     @Override 
     public void onPageLoadStarted(XWalkView view, String url) { 
      System.out.println("onPageLoadStarted " +url); 
     } 
     @Override 
     public void onPageLoadStopped(XWalkView view, String url, 
        LoadStatus status) { 
      System.out.println("onPageLoadStopped " + status); 
     } 
    }); 

    mXWalkView.setResourceClient(new XWalkResourceClient(mXWalkView) { 
     @Override 
     public void onReceivedHttpAuthRequest(XWalkView view, 
        XWalkHttpAuthHandler handler, String host, String realm) { 
      System.out.println("onReceivedHttpAuthRequest"); 
     } 
    });