Code example for ScrollView

Methods: smoothScrollTo

0
		public void onProgressUpdate(String... strings) {
			tv.append(strings[0]);
			//The next command is used to roll the text to the bottom 
			scroller.post(new Runnable() {
				public void run() { 
					scroller.smoothScrollTo(0, tv.getBottom());
				} 
			}); 
		} 
 
		//This function is called by the AsyncTask class when IperfTask.cancel is called. 
		//It is used to terminate an already running task. 
		@Override 
		public void onCancelled() { 
			//The running process is destroyed and system resources are freed. 
			if (process != null) { 
				process.destroy(); 
				try { 
					process.waitFor(); 
				} catch (InterruptedException e) {
Stop searching for code, let great code find you!  Add Codota to your java IDE