Code example for HorizontalScrollView

Methods: smoothScrollTo, getWidth

0
	public void onClick(View v)
	{ 
		// TODO Auto-generated method stub 
		if (v == start)
		{ 
			hsv.smoothScrollTo(hsv.getWidth() + iv_right.getWidth(), 0);
			return; 
		} 
 
		if (v == stop)
		{ 
			hsv.smoothScrollTo(0, 0);
			return; 
		} 
 
		if (v == button)
		{ 
 
		} 
	}