@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ptr_webview2);

		PullToRefreshWebView2 pullRefreshWebView = (PullToRefreshWebView2) findViewById(R.id.pull_refresh_webview2);
		pullRefreshWebView.setOnRefreshListener(this);

		WebView webView = pullRefreshWebView.getRefreshableView();
		webView.getSettings().setJavaScriptEnabled(true);
		webView.setWebViewClient(new SampleWebViewClient());

		// We just load a prepared HTML page from the assets folder for this
		// sample, see that file for the Javascript implementation
		webView.loadUrl("file:///android_asset/ptr_webview2_sample.html");
	}
@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ptr_webview2);

		PullToRefreshWebView2 pullRefreshWebView = (PullToRefreshWebView2) findViewById(R.id.pull_refresh_webview2);
		pullRefreshWebView.setOnRefreshListener(this);

		WebView webView = pullRefreshWebView.getRefreshableView();
		webView.getSettings().setJavaScriptEnabled(true);
		webView.setWebViewClient(new SampleWebViewClient());

		
		
		webView.loadUrl("file:
	}
@ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_ptr_webview2 ) ; PullToRefreshWebView2 pullRefreshWebView = ( PullToRefreshWebView2 ) findViewById ( R . id . pull_refresh_webview2 ) ; pullRefreshWebView . setOnRefreshListener ( this ) ; WebView webView = pullRefreshWebView . getRefreshableView ( ) ; webView . getSettings ( ) . setJavaScriptEnabled ( true ) ; webView . setWebViewClient ( new SampleWebViewClient ( ) ) ; // We just load a prepared HTML page from the assets folder for this // sample, see that file for the Javascript implementation webView . loadUrl ( "file:///android_asset/ptr_webview2_sample.html" ) ; }
Called when the activity is first created.
Called when the activity is first created .