- public class MyWebViewClient extends WebViewClient {
- boolean timeout;
-
- public MyWebView() {
- timeout = true;
- }
-
- @Override
- public void onPageStarted(WebView view, String url, Bitmap favicon) {
- new Thread(new Runnable() {
- @Override
- public void run() {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- if(timeout) {
-
- }
- }
- }).start();
- }
-
- @Override
- public void onPageFinished(WebView view, String url) {
- timeout = false;
- }
- http://blog.csdn.net/dreamer0924/article/details/8640797
- }
posted @
2017-12-09 21:01
小毛驴
阅读(
238)
评论()
编辑
收藏
举报