public void setProgress(int progress){
		if(getWidth() == 0){
			pendindProgress = progress;
		}else{
			this.progress = progress;
			if(progress > max)
				progress = max;
			if(progress < min)
				progress = min;
			int totalWidth = max-min;
			double progressPercent = (double)progress/(double)totalWidth;
			int progressWidth =(int) (getWidth()*progressPercent);
			LayoutParams params = (LayoutParams) progressView.getLayoutParams();
			params.width = progressWidth;
			params.height = getHeight();
			progressView.setLayoutParams(params);
			pendindProgress = -1;
		}
	}
Make a dark color to ripple effect
@return
MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarDeterminate.java