code: public void setMenuBackgroundColor(int colorResId) {
      backgroundColor = ContextCompat.getColor(getContext(), colorResId);
      paint.setColor(backgroundColor);
      invalidate();
    }
docs: Sets TapBarMenu's background color from given resource.
  @param colorResId Color resource id. For example: R.color.holo_blue_light