generateDefaultLayoutParams
Create a default LayoutParams
object for a child of the RecyclerView.
LayoutManagers will often want to use a custom LayoutParams
type to store extra information specific to the layout. Client code should subclass for this purpose.
Important: if you use your own custom LayoutParams
type you must also override #checkLayoutParams(LayoutParams), #generateLayoutParams(android.view.ViewGroup.LayoutParams) and #generateLayoutParams(android.content.Context, android.util.AttributeSet).