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 ; }
Set the max total progress of the progress bar