Code example for HorizontalScrollView

Methods: scrollTo

0
				.findViewById(R.id.score_steps_scroll_view);
	} 
 
	@Override 
	protected void onScrollChanged(int l, int t, int oldl, int oldt) {
		scoreStepsScrollView.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;
	}