Code example for ScrollView

Methods: scrollTo

0
		timelineView = (TimelineView) findViewById(R.id.timeline);
	} 
 
	@Override 
	protected void onScrollChanged(int l, int t, int oldl, int oldt) {
		synchScrollView.scrollTo(l, t);
	} 
 
	@Override 
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		if (timelineView.isConsumingTouchEvent()) {
			return false; 
		} 
		boolean intercept = true;
		try { 
			intercept = super.onInterceptTouchEvent(ev);
		} catch (Exception e) {
			// can happen sporadically 
		} 
		return intercept;
Connect your IDE to all the code out there  Get Codota for Java