android里面嵌套WebView,解决 WebView点击无效的方法

MessageBox.show(dialog, "加载数据","正在加载数据,请稍后...");//http://www.cvbaoli.com/wechat  
WebView wv = (WebView)findViewById(R.id.webView1);//http://cvbaoli.com/webak/public/showAgreement#  
WebSettings s = wv.getSettings();  
s.setBuiltInZoomControls(true);      
s.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);       
s.setUseWideViewPort(true);      
s.setLoadWithOverviewMode(true);     
s.setSavePassword(true);      
s.setSaveFormData(true);      
s.setJavaScriptEnabled(true);
s.setGeolocationEnabled(true);    
s.setGeolocationDatabasePath("http://www.cvbaoli.com/webak/public/showAgreement");  
s.setDomStorageEnabled(true);   
  
wv.setWebViewClient(new WebViewClient(){  
  
    @Override  
    public void onPageFinished(WebView view, String url) {  
        dialog.cancel();  
          
        super.onPageFinished(view, url);  
    }  
      
});  
wv.loadUrl(RequestIps.weixinIp1+"/public/showAgreement");


 

你可能感兴趣的:(android里面嵌套WebView,解决 WebView点击无效的方法)