android.webkit.WebView.setEnabled()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(223)

本文整理了Java中android.webkit.WebView.setEnabled()方法的一些代码示例,展示了WebView.setEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.setEnabled()方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:setEnabled

WebView.setEnabled介绍

暂无

代码示例

代码示例来源:origin: sealtalk/sealtalk-android

@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {//网页页面开始加载的时候
  if (progressDialog == null) {
    progressDialog = new ProgressDialog(FunctionIntroducedActivity.this);
    progressDialog.setMessage("Please wait...");
    progressDialog.show();
    mWebView.setEnabled(false);// 当加载网页的时候将网页进行隐藏
  }
  super.onPageStarted(view, url, favicon);
}

代码示例来源:origin: AnyChart/AnyChart-Android

@Override
  public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
    if (isDebug) Log.e("AnyChart", consoleMessage.message());
    webView.setEnabled(false);
    return true;
  }
});

代码示例来源:origin: sealtalk/sealtalk-android

@Override
public void onPageFinished(WebView view, String url) {//网页加载结束的时候
  if (progressDialog != null && progressDialog.isShowing()) {
    progressDialog.dismiss();
    progressDialog = null;
    mWebView.setEnabled(true);
  }
}

代码示例来源:origin: sealtalk/sealtalk-android

@Override
public void onPageFinished(WebView view, String url) {//网页加载结束的时候
  //super.onPageFinished(view, url);
  if (progressDialog != null && progressDialog.isShowing()) {
    progressDialog.dismiss();
    progressDialog = null;
    mWebView.setEnabled(true);
  }
}

代码示例来源:origin: sealtalk/sealtalk-android

@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {//网页页面开始加载的时候
  if (progressDialog == null) {
    progressDialog = new ProgressDialog(RongWebActivity.this);
    progressDialog.setMessage("Please wait...");
    progressDialog.show();
    mWebView.setEnabled(false);// 当加载网页的时候将网页进行隐藏
  }
  super.onPageStarted(view, url, favicon);
}

代码示例来源:origin: sealtalk/sealtalk-android

@Override
public void onPageFinished(WebView view, String url) {//网页加载结束的时候
  //super.onPageFinished(view, url);
  if (progressDialog != null && progressDialog.isShowing()) {
    progressDialog.dismiss();
    progressDialog = null;
    mWebView.setEnabled(true);
  }
}

代码示例来源:origin: sealtalk/sealtalk-android

@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {//网页页面开始加载的时候
  if (progressDialog == null) {
    progressDialog = new ProgressDialog(UpdateLogActivity.this);
    progressDialog.setMessage("Please wait...");
    progressDialog.show();
    mWebView.setEnabled(false);// 当加载网页的时候将网页进行隐藏
  }
  super.onPageStarted(view, url, favicon);
}

相关文章

WebView类方法