private void stopIndeterminate(){
		animation.cancel();
		ViewHelper.setX(progressView,0);
		runAnimation = false;
	}
Stop indeterminate animation to convert view in determinate progress bar
MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarIndeterminateDeterminate.java