Code example for ScrollView

Methods: scrollBy

0
                // Remove the listener so this code isn't executed again. 
                mLlCreditsBody.getViewTreeObserver().removeGlobalOnLayoutListener(this);
                // Get the max scroll value. 
                getScrollMaxAmount(); 
                // Set the initial scroll value to min + 1 
                mSvCreditsBody.scrollBy(0, 1);
                // Start the scroll animation. 
                startAutoScrolling(); 
            } 
        }); 
    } 
 
    /** 
     * Adds images to the view. This is extendible to multiple images, but we 
     * are currently only using one very large credits image. 
     */ 
    public void addImagesToView() { 
        // Loop through the credits image array. 
        for (int i = 0; i < mImageNameArray.length; i++) {
             
            /*