private float pxFromDp(float dp)
    {
        return dp * this.getContext().getResources().getDisplayMetrics().density;
    }
if you are using the default indicator , this method will help you to set the selected status and
the unselected status color.
@param selectedColor
@param unselectedColor
library/src/main/java/com/daimajia/slider/library/Indicators/PagerIndicator.java