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) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPrefetchDisplayLists() |
LayoutHandlerFactory |
getLayoutHandlerFactory() |
double |
getRangeRatio() |
boolean |
isCircular() |
public RecyclerBinderConfiguration(double rangeRatio)
public RecyclerBinderConfiguration(double rangeRatio, LayoutHandlerFactory idleExecutor)
public RecyclerBinderConfiguration(double rangeRatio, LayoutHandlerFactory idleExecutor, boolean canPrefetchDisplayLists)
public RecyclerBinderConfiguration(double rangeRatio, LayoutHandlerFactory idleExecutor, boolean canPrefetchDisplayLists, boolean isCircular)
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 rangepublic double getRangeRatio()
public LayoutHandlerFactory getLayoutHandlerFactory()
public boolean canPrefetchDisplayLists()
public boolean isCircular()