示例#1
0
 @Override
 public void onProgressChanged(final WebView view, final int newProgress) {
   super.onProgressChanged(view, newProgress);
   BWebHost webHost = webView.getWebHost();
   if (webHost != null) {
     webHost.postMessage(BConstants.MSG_PAGE_UPDATE, 0, null);
   }
 }
 /** @see AwContentsClient#onProgressChanged(int) */
 @Override
 public void onProgressChanged(int progress) {
   TraceEvent.begin();
   if (mWebChromeClient != null) {
     if (TRACE) Log.d(TAG, "onProgressChanged=" + progress);
     mWebChromeClient.onProgressChanged(mWebView, progress);
   }
   TraceEvent.end();
 }
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   super.onProgressChanged(view, newProgress);
   mProgressbar.setProgress(newProgress);
   if (newProgress == 100) {
     mProgressbar.setVisibility(View.GONE);
   } else {
     mProgressbar.setVisibility(View.VISIBLE);
   }
 }
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   if (newProgress == 100) {
     progressbar.setVisibility(GONE);
   } else {
     if (progressbar.getVisibility() == GONE) progressbar.setVisibility(VISIBLE);
     progressbar.setProgress(newProgress);
   }
   super.onProgressChanged(view, newProgress);
 }
示例#5
0
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   super.onProgressChanged(view, newProgress);
   if (progressBar != null) {
     if (progressBar.getVisibility() != View.VISIBLE && newProgress != 100) {
       progressBar.setVisibility(View.VISIBLE);
     }
     if (newProgress == 100) {
       progressBar.setVisibility(View.GONE);
     } else {
       progressBar.setProgress(newProgress);
     }
   }
 }
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   super.onProgressChanged(view, newProgress);
   mWindow.setFeatureInt(Window.FEATURE_PROGRESS, newProgress * 100);
 }
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   Trace.e(tag, "onProgressChanged:" + newProgress);
   if (progressDrawable != null) progressDrawable.setProgress((newProgress * 1.0f) / 100f);
   super.onProgressChanged(view, newProgress);
 }
 @Override
 public void onProgressChanged(WebView view, final int newProgress) {
   if (newProgress >= 90) {}
   super.onProgressChanged(view, newProgress);
 }
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   if (originalWebChromeClient != null) {
     originalWebChromeClient.onProgressChanged(view, newProgress);
   }
 }
示例#10
0
 @Override
 public void onProgressChanged(WebView view, int progress) {
   super.onProgressChanged(view, progress);
   mProgressView.setIndeterminate(false);
   mProgressView.setProgress(progress);
 }
 /** 페이지를 로딩하는 현재 진행 상황을 전해줍니다. newProgress 현재 페이지 로딩 진행 상황, 0과 100 사이의 정수로 표현.(0% ~ 100%) */
 @Override
 public void onProgressChanged(WebView view, int newProgress) {
   Log.i("WebView", "Progress: " + String.valueOf(newProgress));
   super.onProgressChanged(view, newProgress);
 }
示例#12
0
 @Override
 // 设置网页加载的进度条
 public void onProgressChanged(WebView view, int newProgress) {
   activity.getWindow().setFeatureInt(Window.FEATURE_PROGRESS, newProgress * 100);
   super.onProgressChanged(view, newProgress);
 }