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:

<com.viewpagerindicator.CirclePageIndicator
        android:id="@+id/circlePageIndicator_intro"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/margin_large"
        android:clickable="false"
        app:fillColor="@android:color/white"
        app:radius="@dimen/circle_indicator_radius"
        app:pageColor="@android:color/transparent"
        app:strokeWidth="1dp"
        android:layout_above="@+id/textView_login"
        android:paddingTop="@dimen/margin_small"/>

But this will:

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