Code example for View

Methods: getLayoutParamssetLayoutParams

0
        int lm = ((page * this.mForegroundWidth)
                 + (this.mForegroundWidth == 0 ?
                        0 : 
                        (int)(scrollOffSet * this.mForegroundWidth)));
        RelativeLayout.LayoutParams params =
                (RelativeLayout.LayoutParams)this.mForegroundBar.getLayoutParams();
        params.leftMargin = lm;
        this.mForegroundBar.setLayoutParams(params);
 
        // Reschedule the timer 
        rescheduleDimTimer(); 
        showIndicator(false); 
    } 
 
    /** 
     * Method that calculate and sets the page indicator size based on the 
     * number of pages. 
     */ 
    private void calculatePageIndicatorSize() { 
        // Only if number of pages has set 
Contextual code suggestions in your IDE  Get Codota for Java