public class GridRecyclerConfiguration<T extends SectionTree.Target & Binder<RecyclerView>> extends java.lang.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,
boolean stackFromEnd,
RecyclerBinderConfiguration recyclerBinderConfiguration,
boolean allowMeasureOverride,
GridLayoutInfoFactory gridLayoutInfoFactory,
int snapMode)
Deprecated.
|
GridRecyclerConfiguration(int orientation,
int numColumns,
boolean reverseLayout,
RecyclerBinderConfiguration recyclerBinderConfiguration)
Deprecated.
|
GridRecyclerConfiguration(int orientation,
int numColumns,
boolean reverseLayout,
RecyclerBinderConfiguration recyclerBinderConfiguration,
boolean allowMeasureOverride)
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() |
boolean |
getReverseLayout() |
SnapHelper |
getSnapHelper() |
int |
getSnapMode() |
boolean |
getStackFromEnd() |
@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, boolean stackFromEnd, 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 boolean getReverseLayout()
getReverseLayout
in interface RecyclerConfiguration
public boolean getStackFromEnd()
getStackFromEnd
in interface RecyclerConfiguration
public LayoutInfo getLayoutInfo(ComponentContext c)
getLayoutInfo
in interface RecyclerConfiguration
public RecyclerBinderConfiguration getRecyclerBinderConfiguration()
getRecyclerBinderConfiguration
in interface RecyclerConfiguration