Code example for ScrollView

Methods: fullScroll

1
			Log.d(TAG,"ScreenOutput: " + text);
 
			// Now scroll to the bottom 
			sv.post(new Runnable() {
				public void run() { 
					sv.fullScroll(ScrollView.FOCUS_DOWN);
				} 
 
			}); 
		} 
	} 
 
	/** 
	 * this will be called when we receive a chat line. 
	 * It is executed in the UI thread. 
	 */ 
	private Handler _handler = new Handler() {
		@Override 
		public void handleMessage(Message msg) { 
			String text = (String) msg.obj; 
			ScreenOutput(text);