public class StaggeredGridRecyclerConfiguration<T extends SectionTree.Target & Binder<RecyclerView>> extends Object implements RecyclerConfiguration
RecyclerCollectionComponent
that will create a androidx.recyclerview.widget.StaggeredGridLayoutManager
for the RecyclerView
.Modifier and Type | Class and Description |
---|---|
static class |
StaggeredGridRecyclerConfiguration.Builder |
Constructor and Description |
---|
StaggeredGridRecyclerConfiguration(int numSpans)
Deprecated.
|
StaggeredGridRecyclerConfiguration(int numSpans,
int orientation,
boolean reverseLayout)
Deprecated.
|
StaggeredGridRecyclerConfiguration(int numSpans,
int orientation,
boolean reverseLayout,
int gapStrategy,
RecyclerBinderConfiguration recyclerBinderConfiguration,
StaggeredGridLayoutInfoFactory layoutInfoFactory)
Deprecated.
|
StaggeredGridRecyclerConfiguration(int numSpans,
int orientation,
boolean reverseLayout,
RecyclerBinderConfiguration recyclerBinderConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
StaggeredGridRecyclerConfiguration.Builder |
acquireBuilder() |
static StaggeredGridRecyclerConfiguration.Builder |
create() |
static StaggeredGridRecyclerConfiguration |
createWithRecyclerBinderConfiguration(int numSpans,
RecyclerBinderConfiguration recyclerBinderConfiguration)
Deprecated.
|
LayoutInfo |
getLayoutInfo(ComponentContext c) |
int |
getOrientation() |
RecyclerBinderConfiguration |
getRecyclerBinderConfiguration() |
SnapHelper |
getSnapHelper() |
int |
getSnapMode() |
@Deprecated public StaggeredGridRecyclerConfiguration(int numSpans)
create()
instead.@Deprecated public StaggeredGridRecyclerConfiguration(int numSpans, int orientation, boolean reverseLayout)
create()
instead.@Deprecated public StaggeredGridRecyclerConfiguration(int numSpans, int orientation, boolean reverseLayout, RecyclerBinderConfiguration recyclerBinderConfiguration)
create()
instead.@Deprecated public StaggeredGridRecyclerConfiguration(int numSpans, int orientation, boolean reverseLayout, int gapStrategy, RecyclerBinderConfiguration recyclerBinderConfiguration, StaggeredGridLayoutInfoFactory layoutInfoFactory)
create()
instead.public static StaggeredGridRecyclerConfiguration.Builder create()
@Deprecated public static StaggeredGridRecyclerConfiguration createWithRecyclerBinderConfiguration(int numSpans, RecyclerBinderConfiguration recyclerBinderConfiguration)
create()
instead.public StaggeredGridRecyclerConfiguration.Builder acquireBuilder()
acquireBuilder
in interface RecyclerConfiguration
public SnapHelper getSnapHelper()
getSnapHelper
in interface RecyclerConfiguration
public int getSnapMode()
getSnapMode
in interface RecyclerConfiguration
public int getOrientation()
getOrientation
in interface RecyclerConfiguration
public LayoutInfo getLayoutInfo(ComponentContext c)
getLayoutInfo
in interface RecyclerConfiguration
public RecyclerBinderConfiguration getRecyclerBinderConfiguration()
getRecyclerBinderConfiguration
in interface RecyclerConfiguration