code: private LayoutParams createPreviewLayoutParams() {
          LayoutParams layoutParams = new LayoutParams(getPreviewSize(), getPreviewSize());
          layoutParams.gravity = Gravity.CENTER_VERTICAL;
          return layoutParams;
      }
docs: Creates and returns the layout params of the view, which is used to show a preview of the
  preference's color, depending on the preference's properties.
  
  @return The layout params, which have been created, as an instance of the class {@link
  LayoutParams}