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