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.


E.g. This won’t work:

But this will:

mCirclePageIndicator = (CirclePageIndicator) view.findViewById(;