Code example for ScrollView

Methods: getChildAtsmoothScrollTo, getMeasuredHeight, getScrollY

0
	private void updateUI() { 
		if(!exit && !fingerDown) {
			//Log.d("","Y = "+scrollView.getScrollY()); 
			//Log.d("","MAXAUMOUNT  ="+scrollView.getMaxScrollAmount()); 
			//Log.d("","CHILD = "+scrollView.getChildAt(0).getHeight()); 
			if(scrollView.getScrollY() >= (scrollView.getChildAt(0).getHeight()-scrollView.getMeasuredHeight())) {
				scrollView.smoothScrollTo(0,0);
			}else { 
				scrollView.smoothScrollTo(0,scrollView.getScrollY()+1);
			} 
		} 
	} 
     
    protected void startScrollingThread() { 
        // Fire off a thread to do some work that we shouldn't do directly in the UI thread 
        Thread t = new Thread() {
            public void run() { 
            	while(!exit) {
            		try { 
						Thread.sleep(30);
					} catch (InterruptedException e) {