public static class StaggeredGridRecyclerConfiguration.Builder extends Object implements RecyclerConfiguration.Builder
Modifier and Type | Method and Description |
---|---|
StaggeredGridRecyclerConfiguration |
build()
Builds a
StaggeredGridRecyclerConfiguration using the parameters specified in this
builder. |
StaggeredGridRecyclerConfiguration.Builder |
gapStrategy(int gapStrategy) |
StaggeredGridRecyclerConfiguration.Builder |
numSpans(int numSpans) |
StaggeredGridRecyclerConfiguration.Builder |
orientation(int orientation) |
StaggeredGridRecyclerConfiguration.Builder |
recyclerBinderConfiguration(RecyclerBinderConfiguration recyclerBinderConfiguration) |
StaggeredGridRecyclerConfiguration.Builder |
reverseLayout(boolean reverseLayout) |
StaggeredGridRecyclerConfiguration.Builder |
snapMode(int snapMode) |
StaggeredGridRecyclerConfiguration.Builder |
staggeredGridLayoutInfoFactory(StaggeredGridLayoutInfoFactory staggeredGridLayoutInfoFactory)
Provide a customized
StaggeredGridLayoutInfo through StaggeredGridLayoutInfoFactory interface. |
public StaggeredGridRecyclerConfiguration.Builder snapMode(int snapMode)
snapMode
in interface RecyclerConfiguration.Builder
public StaggeredGridRecyclerConfiguration.Builder numSpans(int numSpans)
public StaggeredGridRecyclerConfiguration.Builder orientation(int orientation)
orientation
in interface RecyclerConfiguration.Builder
public StaggeredGridRecyclerConfiguration.Builder reverseLayout(boolean reverseLayout)
public StaggeredGridRecyclerConfiguration.Builder gapStrategy(int gapStrategy)
public StaggeredGridRecyclerConfiguration.Builder recyclerBinderConfiguration(RecyclerBinderConfiguration recyclerBinderConfiguration)
recyclerBinderConfiguration
in interface RecyclerConfiguration.Builder
public StaggeredGridRecyclerConfiguration.Builder staggeredGridLayoutInfoFactory(StaggeredGridLayoutInfoFactory staggeredGridLayoutInfoFactory)
StaggeredGridLayoutInfo
through StaggeredGridLayoutInfoFactory
interface.public StaggeredGridRecyclerConfiguration build()
StaggeredGridRecyclerConfiguration
using the parameters specified in this
builder.build
in interface RecyclerConfiguration.Builder