text: public virtual void setMax(int max){lock (this){if (max < 0){max = 0;}if (max != mMax){mMax = max;postInvalidate();if (mProgress > max){mProgress = max;}refreshProgress(android.@internal.R.id.progress, mProgress, false);}}}