public class GridRecyclerConfiguration<T extends SectionTree.Target & Binder<RecyclerView>> extends Object implements RecyclerConfiguration
RecyclerCollectionComponent
that will create a androidx.recyclerview.widget.GridLayoutManager
for the RecyclerView
.Modifier and Type | Class and Description |
---|---|
static class |
GridRecyclerConfiguration.Builder |
Constructor and Description |
---|
GridRecyclerConfiguration(int numColumns)
Deprecated.
|
GridRecyclerConfiguration(int orientation,
int numColumns,
boolean reverseLayout)
Deprecated.
|
GridRecyclerConfiguration(int orientation,
int numColumns,
boolean reverseLayout,
RecyclerBinderConfiguration recyclerBinderConfiguration)
Deprecated.
|
GridRecyclerConfiguration(int orientation,
int numColumns,
boolean reverseLayout,
RecyclerBinderConfiguration recyclerBinderConfiguration,
boolean allowMeasureOverride)
Deprecated.
|
GridRecyclerConfiguration(int orientation,
int numColumns,
boolean reverseLayout,
RecyclerBinderConfiguration recyclerBinderConfiguration,
boolean allowMeasureOverride,
GridLayoutInfoFactory gridLayoutInfoFactory,
int snapMode)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
GridRecyclerConfiguration.Builder |
acquireBuilder() |
static GridRecyclerConfiguration.Builder |
create() |
static GridRecyclerConfiguration |
createWithRecyclerBinderConfiguration(int numColumns,
RecyclerBinderConfiguration recyclerBinderConfiguration)
Deprecated.
|
LayoutInfo |
getLayoutInfo(ComponentContext c) |
int |
getOrientation() |
RecyclerBinderConfiguration |
getRecyclerBinderConfiguration() |
SnapHelper |
getSnapHelper() |
int |
getSnapMode() |
@Deprecated public GridRecyclerConfiguration(int numColumns)
create()
instead.@Deprecated public GridRecyclerConfiguration(int orientation, int numColumns, boolean reverseLayout)
create()
instead.@Deprecated public GridRecyclerConfiguration(int orientation, int numColumns, boolean reverseLayout, RecyclerBinderConfiguration recyclerBinderConfiguration)
create()
instead.@Deprecated public GridRecyclerConfiguration(int orientation, int numColumns, boolean reverseLayout, RecyclerBinderConfiguration recyclerBinderConfiguration, boolean allowMeasureOverride)
@Deprecated public GridRecyclerConfiguration(int orientation, int numColumns, boolean reverseLayout, RecyclerBinderConfiguration recyclerBinderConfiguration, boolean allowMeasureOverride, GridLayoutInfoFactory gridLayoutInfoFactory, int snapMode)
create()
instead.public static GridRecyclerConfiguration.Builder create()
@Deprecated public static GridRecyclerConfiguration createWithRecyclerBinderConfiguration(int numColumns, RecyclerBinderConfiguration recyclerBinderConfiguration)
create()
instead.
Static factory method to create a recycler configuration with incremental mount optionally turned on.
public GridRecyclerConfiguration.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