Code example for ScrollView

Methods: scrollTo, getScrollY

0
	 
	private void autoScroll() { 
		final ScrollView sv = (ScrollView) text.getParent();
		sv.post(new Runnable() {
			public void run() { 
				if (text.getLineCount() > sv.getScrollY()/text.getLineHeight())
					sv.scrollTo(0, sv.getScrollY()+1);
			} 
		}); 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java