@Override
    public void onAnimationUpdate(ValueAnimator animation) {
        if (mIndeterminate) {
            setProgress(animation.getAnimatedFraction());
            if (!mRunning) {
                invalidateSelf();
            }
        }
    }
Set customised animator for wave loading animation
@param animator
app/src/main/java/home/smart/fly/animations/customview/views/WaveDrawable.java