code: private void obtainColor(@NonNull final TypedArray typedArray) {
          int defaultColor = ThemeUtil.getColor(getContext(), R.attr.colorAccent);
          color = typedArray.getColor(R.styleable.FloatingActionButton_android_color, defaultColor);
      }
docs: Obtains the floating action button's color from a specific typed array.
  
  @param typedArray
  The typed array, the color should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null