public void setWaveColor(int behindWaveColor, int frontWaveColor) {
        mBehindWaveColor = behindWaveColor;
        mFrontWaveColor = frontWaveColor;

        if (getWidth() > 0 && getHeight() > 0) {
            // need to recreate shader when color changed
            mWaveShader = null;
            createShader();
            invalidate();
        }
    }
Set horizontal size of wave according to <code>waveLengthRatio</code>

@param waveLengthRatio Default to be 1.
                       Ratio of wave length to width of WaveView.
library/src/main/java/com/gelitenight/waveview/library/WaveView.java