Code example for ScrollView

Methods: animate, setVisibility

0
 
		// onPostExecute displays the results of the AsyncTask 
		@Override 
		protected void onPostExecute(String result) {
			textView.setText(result);
			scrollView.setVisibility(View.VISIBLE);
			scrollView.animate().alpha(1f).setDuration(mShortAnimationDuration).setListener(new AnimatorListenerAdapter() {
				@Override 
				public void onAnimationEnd(Animator animation) {
					progressBar.setAlpha(0f);
				} 
			}); 
			/* 
			try { 
				JSONObject responseJSON = new JSONObject(result); 
				textView.setText(responseJSON.toString()); 
			} catch (JSONException e) { 
				// TODO Auto-generated catch block 
				e.printStackTrace(); 
			} 
			*/