code: public void setMax (float max) {
  		if (min > max) throw new IllegalArgumentException("min can't be > max");
  
  		this.max = max;
  
  		if (current > max) {
  			current = max;
  			spinner.notifyValueChanged(spinner.isProgrammaticChangeEvents());
  		}
  	}
docs: Sets max value. If current is greater than max, the current value is set to max value.