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