public void setProgressBarImage(int resourceId, ScalingUtils.ScaleType scaleType) {
    setProgressBarImage(mResources.getDrawable(resourceId), scaleType);
  }
public void setProgressBarImage ( int resourceId , ScalingUtils . ScaleType scaleType ) { setProgressBarImage ( mResources . getDrawable ( resourceId ) , scaleType ) ; }
Sets a new progress bar drawable with scale type.

@param resourceId an identifier of an Android drawable or color resource.
@param ScalingUtils.ScaleType a new scale type.