Code example for HorizontalScrollView

Methods: scrollTo

0
				public void run() { 
 
					final View child = ( (LinearLayout) hsv.getChildAt( 0 ) ).getChildAt( startingTimeslot );                 
					 
					Log.v( TAG, "onActivityCreated : scroll to timeslot(" + child.getWidth() + ") " + startingTimeslot + " at postion '" + ( startingTimeslot * ( child.getWidth() ) ) + "'" );
					hsv.scrollTo( ( startingTimeslot * ( child.getWidth() ) ), 0 );
				} 
 
			}); 
 
		} 
 
	} 
	 
	private void instantiateControls() { 
		 
		timeslot_00_00 = (Button) getActivity().findViewById( R.id.program_guide_timeslots_00_00 );
		timeslot_00_00.setOnClickListener( new OnClickListener() {
			 
			/* (non-Javadoc) 
			 * @see android.view.View.OnClickListener#onClick(android.view.View)