public void setIndicatorVisibility(IndicatorVisibility visibility){
        if(visibility == IndicatorVisibility.Visible){
            setVisibility(View.VISIBLE);
        }else{
            setVisibility(View.INVISIBLE);
        }
        resetDrawable();
    }
set the visibility of indicator.
@param visibility
library/src/main/java/com/daimajia/slider/library/Indicators/PagerIndicator.java