Code example for ScrollView

Methods: setVisibility

0
			} 
			return null; 
		} 
 
		protected void onPreExecute() { 
			scrollView.setVisibility(View.GONE);
			textView.setVisibility(View.GONE);
			imageView.setVisibility(View.GONE);
			progressBar.setVisibility(View.VISIBLE);
		} 
 
		protected void onPostExecute(AlertDialog.Builder dialogBuilder) {
			if (imageIsTooBig) {
				textView.setText("The image is too big and can't be shown. Only images smaller than 512px x 512px are supported.");
				textView.setVisibility(View.VISIBLE);
				scrollView.setVisibility(View.VISIBLE);
			} 
			else if (dialogBuilder != null) {
				AlertDialog dialog = dialogBuilder.create();
				dialog.setCanceledOnTouchOutside(true);
				dialog.show();