public interface LayoutHandlerFactory
LayoutHandler
s in RecyclerBinder
.Modifier and Type | Method and Description |
---|---|
LayoutHandler |
createLayoutCalculationHandler(RenderInfo renderInfo) |
boolean |
shouldUpdateLayoutHandler(RenderInfo previousRenderInfo,
RenderInfo newRenderInfo) |
@Nullable LayoutHandler createLayoutCalculationHandler(RenderInfo renderInfo)
LayoutHandler
that will be used to compute the layouts of the children of
the RecyclerSpec
.boolean shouldUpdateLayoutHandler(RenderInfo previousRenderInfo, RenderInfo newRenderInfo)
LayoutHandler
of ComponentTree
that's being updated by update
operation of RecyclerBinder
will be replaced by new LayoutHandler
returned
from createLayoutCalculationHandler(RenderInfo)
, otherwise keep using existing
LayoutHandler
created during item insertion.