epoxy-adapter / com.airbnb.epoxy / EpoxyModel / getDefaultLayout

getDefaultLayout

@LayoutRes protected abstract fun getDefaultLayout(): Int

Return the default layout resource to be used when creating views for this model. The resource will be inflated to create a view for the model; additionally the layout int is used as the views type in the RecyclerView.

This can be left unimplemented if you use the EpoxyModelClass annotation to define a layout.

This default value can be overridden with #layout(int) at runtime to change the layout dynamically.