code: private void obtainPreviewSize(@NonNull final TypedArray typedArray) {
          int defaultValue = getContext().getResources()
                  .getDimensionPixelSize(R.dimen.color_picker_preference_default_preview_size);
          setPreviewSize(typedArray
                  .getDimensionPixelSize(R.styleable.AbstractColorPickerPreference_previewSize,
                          defaultValue));
      }
docs: Obtains the size of the preview of the preference's color from a specific typed array.
  
  @param typedArray
  The typed array, the size should be obtained from, as an instance of the class {@link
  TypedArray}. The typed array may not be null