public void setCustomIndicator(PagerIndicator indicator){
        if(mIndicator != null){
            mIndicator.destroySelf();
        }
        mIndicator = indicator;
        mIndicator.setIndicatorVisibility(mIndicatorVisibility);
        mIndicator.setViewPager(mViewPager);
        mIndicator.redraw();
    }
{@link com.daimajia.slider.library.Indicators.PagerIndicator} shape, rect or oval.
library/src/main/java/com/daimajia/slider/library/SliderLayout.java