-
- All Implemented Interfaces:
-
com.airbnb.epoxy.ModelCollector
public abstract class GroupModel extends EpoxyModelGroup implements ModelCollector
An EpoxyModelGroup usable in a DSL manner via the group extension.
<p> Example: ``` group { id("photos") layout(R.layout.photo_grid)// add your models here, example: for (photo in photos) { imageView { id(photo.id) url(photo.url) } } }
-
-
Field Summary
Fields Modifier and Type Field Description private final List<EpoxyModel<?>>modelsprivate final BooleanaddedToAdapterprivate final EpoxyControllercontrollerToStageTo
-
Constructor Summary
Constructors Constructor Description GroupModel()GroupModel(Integer layoutRes)
-
Method Summary
Modifier and Type Method Description Unitadd(EpoxyModel<?> model)-
Methods inherited from class com.airbnb.epoxy.GroupModel
addModel, bind, bind, bind, createNewHolder, equals, getDefaultLayout, getSpanSize, hashCode, onViewAttachedToWindow, onViewDetachedFromWindow, shouldSaveViewState, shouldSaveViewState, unbind, useViewStubLayoutParams -
Methods inherited from class com.airbnb.epoxy.EpoxyModelWithHolder
addIf, addIf, addTo, addWithDebugValidation, buildView, getLayout, getViewType, hasDefaultId, hide, id, id, id, id, id, id, id, isDebugValidationEnabled, isShown, layout, onMutation, preBind, reset, show, show, spanSize, spanSizeOverride, toString, validateStateHasNotChangedSinceAdded -
Methods inherited from class com.airbnb.epoxy.EpoxyModelGroup
onFailedToRecycleView, onVisibilityChanged, onVisibilityStateChanged -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GroupModel
GroupModel()
-
GroupModel
GroupModel(Integer layoutRes)
-
-
Method Detail
-
add
Unit add(EpoxyModel<?> model)
-
-
-
-