public void setMax ( int max ) { if ( max <= 0 || max < mProgress ) { throw new IllegalArgumentException ( String . format ( "Max (%d) must be > 0 and >= %d" , max , mProgress ) ) ; } mMax = max ; invalidate ( ) ; }
Sets the maximum progress value . Defaults to 100 .