private LayoutParams createPreviewLayoutParams ( ) { LayoutParams layoutParams = new LayoutParams ( getPreviewSize ( ) , getPreviewSize ( ) ) ; layoutParams . gravity = Gravity . CENTER_VERTICAL ; return layoutParams ; }
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 .