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