generateLayoutParams
Create a LayoutParams object suitable for this LayoutManager from an inflated layout resource.
Important: if you use your own custom LayoutParams
type you must also override checkLayoutParams, generateLayoutParams and generateLayoutParams.
Return
a new LayoutParams object
Parameters
c
Context for obtaining styled attributes
attrs
AttributeSet describing the supplied arguments
Create a LayoutParams object suitable for this LayoutManager, copying relevant values from the supplied LayoutParams object if possible.
Important: if you use your own custom LayoutParams
type you must also override checkLayoutParams, generateLayoutParams and generateLayoutParams.
Return
a new LayoutParams object
Parameters
lp
Source LayoutParams object to copy values from