epoxy-adapter / com.airbnb.epoxy / EpoxyModelGroup / useViewStubLayoutParams

useViewStubLayoutParams

protected open fun useViewStubLayoutParams(model: EpoxyModel<*>!, modelPosition: Int): Boolean

Whether the layout params set on the view stub for the given model should be carried over to the model's view. Default is true

Set this to false if you want the layout params on the model's layout resource to be kept.

Parameters

model - EpoxyModel<*>!: The model who's view is being created

modelPosition - Int: The position of the model in the models list