How to Set Transparent Color in CirclePageIndicator

Trying to get my blog up and running again, and came across this peculiarity with a useful Android library called CirclePageIndicator. Basically, if you want to set the non-selected fill of one of the circles to transparent, you must do it in java rather than xml.

device-2015-09-24-183029

E.g. This won’t work:


But this will:

mCirclePageIndicator = (CirclePageIndicator) view.findViewById(R.id.circlePageIndicator_intro);
mCirclePageIndicator.setPageColor(android.R.color.transparent);