Code example for ProgressBar

Methods: incrementProgressBy

0
        } 
    } 
 
    public void incrementProgressBy(int diff) {
        if (mProgress != null) {
            mProgress.incrementProgressBy(diff);
            onProgressChanged(); 
        } else { 
            mIncrementBy += diff;
        } 
    } 
 
    public void incrementSecondaryProgressBy(int diff) {
        if (mProgress != null) {
            mProgress.incrementSecondaryProgressBy(diff);
            onProgressChanged(); 
        } else { 
            mIncrementSecondaryBy += diff;
        } 
    }