code: private void setPlaceholderTextInternal(String text,
                                              @ColorInt int color,
                                              int textSize,
                                              boolean invalidate) {
          // Takes only the first character as the place holder
          mText = formatPlaceholderText(text);
          mTextColor = color;
          mTextSize = textSize;
  
          if ((null == mTextPaint) &&
              (textSize > 0) &&
              !TextUtils.isEmpty(mText)) {
              mTextPaint = getTextPaint();
          }
  
          if (null != mTextPaint) {
              mTextPaint.setColor(color);
              mTextPaint.setTextSize(textSize);
          }
  
          // Invalidate the view if asked
          if (invalidate) {
              invalidate();
          }
      }
docs: Sets placeholder text paint and configs.
  
  @param text
  @param color
  @param textSize
  @param invalidate