code: public static Drawable getRippleDrawable(@ColorInt int normalColor, @ColorInt int pressedColor, int radius) {
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
              return new RippleDrawable(ColorStateList.valueOf(pressedColor),
                      new ColorDrawable(normalColor), getRippleMask(normalColor, radius));
          } else {
              return getStateListDrawable(normalColor, pressedColor);
          }
      }
docs: helper to create an ripple drawable with the given normal and pressed color
  
  @param normalColor  the normal color
  @param pressedColor the pressed color
  @param radius       the button radius
  @return the ripple drawable