public void setCurrentFraction(float fraction) { if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) { for (ValueAnimator valueAnimator : getAllAnimator()) { valueAnimator.setCurrentFraction(fraction); } } else { setCurrentPlayTime((long) (fraction * getDuration())); } }