public class ListRecyclerConfiguration<T extends SectionTree.Target & Binder<RecyclerView>> extends Object implements RecyclerConfiguration
RecyclerCollectionComponent
that will create a
LinearLayoutManager
for the RecyclerView
.Modifier and Type | Class and Description |
---|---|
static interface |
ListRecyclerConfiguration.SnapMode |
Modifier and Type | Field and Description |
---|---|
static int |
SNAP_NONE |
static int |
SNAP_TO_CENTER |
static int |
SNAP_TO_CENTER_CHILD |
Constructor and Description |
---|
ListRecyclerConfiguration() |
ListRecyclerConfiguration(int orientation,
boolean reverseLayout) |
ListRecyclerConfiguration(int orientation,
boolean reverseLayout,
int snapMode) |
ListRecyclerConfiguration(int orientation,
boolean reverseLayout,
int snapMode,
RecyclerBinderConfiguration recyclerBinderConfiguration) |
ListRecyclerConfiguration(int orientation,
boolean reverseLayout,
int snapMode,
RecyclerBinderConfiguration recyclerBinderConfiguration,
LinearLayoutInfoFactory linearLayoutInfoFactory) |
Modifier and Type | Method and Description |
---|---|
T |
buildTarget(ComponentContext c) |
static ListRecyclerConfiguration |
createWithRecyclerBinderConfiguration(RecyclerBinderConfiguration recyclerBinderConfiguration)
Static factory method to create a recycler configuration
with incremental mount optionally turned on.
|
int |
getOrientation() |
SnapHelper |
getSnapHelper() |
boolean |
isWrapContent() |
public static final int SNAP_TO_CENTER
public static final int SNAP_TO_CENTER_CHILD
public static final int SNAP_NONE
public ListRecyclerConfiguration()
public ListRecyclerConfiguration(int orientation, boolean reverseLayout)
public ListRecyclerConfiguration(int orientation, boolean reverseLayout, int snapMode)
public ListRecyclerConfiguration(int orientation, boolean reverseLayout, int snapMode, RecyclerBinderConfiguration recyclerBinderConfiguration)
public ListRecyclerConfiguration(int orientation, boolean reverseLayout, int snapMode, @Nullable RecyclerBinderConfiguration recyclerBinderConfiguration, @Nullable LinearLayoutInfoFactory linearLayoutInfoFactory)
public static ListRecyclerConfiguration createWithRecyclerBinderConfiguration(RecyclerBinderConfiguration recyclerBinderConfiguration)
public T buildTarget(ComponentContext c)
buildTarget
in interface RecyclerConfiguration
@Nullable public SnapHelper getSnapHelper()
getSnapHelper
in interface RecyclerConfiguration
public int getOrientation()
getOrientation
in interface RecyclerConfiguration
public boolean isWrapContent()
isWrapContent
in interface RecyclerConfiguration