code: public ProgressStyle setMax(int value){
  
          if(mProgressStyle == HORIZONTAL) {
  
              if (mProgress.isIndeterminate())
                  mProgress.setIndeterminate(false);
  
              mProgress.setMax(value);
  
              if (!mIsPercentageMode)
                  mProgressMax.setText(String.format("%d %s", value, mSuffix));
  
          }
  
          return this;
      }
docs: Set the max total progress of the progress bar
  
  @param value     the max value
  @return          self for chaining