错误滑动布局android java。当我把应用程序错误

时间:2016-08-25 14:50:25

标签: java android webview swiperefreshlayout

每次我将此代码放入我的Android bug应用程序

private SwipeRefreshLayout swipeLayout; 

....

    webView.setWebViewClient(new WebViewClient() {
        public void onPageFinished(WebView view, String url) {
        }
    });

    swipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_container);
    swipeLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener(){
        @Override
        public void onRefresh() {
            webView.reload();


        }
    } );

0 个答案:

没有答案