public class RecyclerBinderConfiguration extends Object
RecyclerBinder
.Constructor and Description |
---|
RecyclerBinderConfiguration(double rangeRatio) |
RecyclerBinderConfiguration(double rangeRatio,
LayoutHandlerFactory idleExecutor) |
RecyclerBinderConfiguration(double rangeRatio,
LayoutHandlerFactory idleExecutor,
boolean canPrefetchDisplayLists) |
RecyclerBinderConfiguration(double rangeRatio,
LayoutHandlerFactory idleExecutor,
boolean canPrefetchDisplayLists,
boolean isCircular) |
RecyclerBinderConfiguration(double rangeRatio,
LayoutHandlerFactory idleExecutor,
boolean canPrefetchDisplayLists,
boolean isCircular,
boolean isWrapContent) |
public RecyclerBinderConfiguration(double rangeRatio)
public RecyclerBinderConfiguration(double rangeRatio, @Nullable LayoutHandlerFactory idleExecutor)
public RecyclerBinderConfiguration(double rangeRatio, @Nullable LayoutHandlerFactory idleExecutor, boolean canPrefetchDisplayLists)
public RecyclerBinderConfiguration(double rangeRatio, @Nullable LayoutHandlerFactory idleExecutor, boolean canPrefetchDisplayLists, boolean isCircular)
public RecyclerBinderConfiguration(double rangeRatio, @Nullable LayoutHandlerFactory idleExecutor, boolean canPrefetchDisplayLists, boolean isCircular, boolean isWrapContent)
rangeRatio
- Ratio to determine the number of components before and after the RecyclerView
's total number of currently visible items to have
their Component layout computed ahead of time.
e.g total number of visible items = 5 rangeRatio = 10 total number of items before the 1st visible item to be computed = 5 * 10 = 50 total number of items after the last visible item to be computed = 5 * 10 = 50
idleExecutor
- This determines the thread on which the Component layout calculation will
be processed in. Null means that the computation will be done in the background thread.canPrefetchDisplayLists
- If this is true, displaylists for the Android Views and
Drawables that are not collected during the ComponentTree layout computation will be
collected whenever the UI thread is free.isCircular
- If true, the underlying RecyclerBinder will have a circular behaviour. Note:
circular lists DO NOT support any operation that changes the size of items like insert,
remove, insert range, remove rangeisWrapContent
- If true, the underlying RecyclerBinder will measure the parent height by
the height of children if the orientation is vertical, or measure the parent width by the
width of children if the orientation is horizontal.public void setHasDynamicItemHeight(boolean hasDynamicItemHeight)
public void setSplitLayoutTag(String splitLayoutTag)
public void setUseAsyncMutations(boolean useAsyncMutations)
public void setFillListViewport(boolean fillListViewport)
public void setFillListViewportHScrollOnly(boolean fillListViewportHScrollOnly)
public void setThreadPoolForParallelFillViewportConfig(LayoutThreadPoolConfiguration threadPoolForParallelFillViewportConfig)
public void setEnableStableIds(boolean enableStableIds)
public void setInvalidStateLogParamsList(List<ComponentLogParams> invalidStateLogParamsList)
public double getRangeRatio()
@Nullable public LayoutHandlerFactory getLayoutHandlerFactory()
public boolean canPrefetchDisplayLists()
public boolean isCircular()
public boolean isWrapContent()
public String getSplitLayoutTag()
public boolean getUseAsyncMutations()
public boolean getFillListViewport()
public boolean getFillListViewportHScrollOnly()
public LayoutThreadPoolConfiguration getThreadPoolForParallelFillViewportConfig()
public boolean getEnableStableIds()
@Nullable public List<ComponentLogParams> getInvalidStateLogParamsList()