code: public void setRippleColor(int rippleColor) {
          this.rippleColor = rippleColor;
          this.rippleHighlightColor = Color.argb((int) (Color.alpha(rippleColor) * 0.25), Color.red(rippleColor), Color.green(rippleColor),
                  Color.blue(rippleColor));
          paint.setColor(rippleColor);
          paint.setAlpha(rippleAlphaInt);
          invalidate();
      }
docs: Accessor