Code example for WebView

Methods: setVisibility

0
 
		@Override 
		public void onPageFinished(WebView view, String url) { 
			super.onPageFinished(view, url); 
			loadingSpinner.setVisibility(android.view.View.GONE); 
			webView.setVisibility(android.view.View.VISIBLE); 
		} 
 
		@Override 
		public void onReceivedError(WebView view, int errorCode, 
				String description, String failingUrl) { 
 
			Toast.makeText(view.getContext(), 
					"Error " + errorCode + ": " + description, 
					Toast.LENGTH_LONG).show(); 
			super.onReceivedError(view, errorCode, description, failingUrl); 
		} 
	}; 
 
}