code: private void obtainTextColor(@NonNull final TypedArray typedArray) {
          int defaultColor = ContextCompat.getColor(getContext(), R.color.chip_text_color_light);
          setTextColor(typedArray.getColor(R.styleable.Chip_android_textColor, defaultColor));
      }
docs: Obtains the chip's text color from a specific typed array.
  
  @param typedArray
  The typed array, the text color should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null