public interface IFlexibleLayoutManager
This interface will make any third LayoutManager suitable for FlexibleAdapter.
| Modifier and Type | Method and Description |
|---|---|
int |
findFirstCompletelyVisibleItemPosition()
Helper method to find the adapter position of the first completely visible view
[for each span], no matter which Layout is.
|
int |
findFirstVisibleItemPosition()
Helper method to find the adapter position of the first partially visible view
[for each span], no matter which Layout is.
|
int |
findLastCompletelyVisibleItemPosition()
Helper method to find the adapter position of the last completely visible view
[for each span], no matter which Layout is.
|
int |
findLastVisibleItemPosition()
Helper method to find the adapter position of the last partially visible view
[for each span], no matter which Layout is.
|
int |
getOrientation()
Finds the layout orientation of the RecyclerView, no matter which LayoutManager is in use.
|
int |
getSpanCount()
Helper method to retrieve the number of the columns (span count) of the given LayoutManager.
|
int getOrientation()
OrientationHelper#HORIZONTAL, OrientationHelper#VERTICALint getSpanCount()
All Layouts are supported.
int findFirstCompletelyVisibleItemPosition()
RecyclerView.NO_POSITION
if there aren't any visible items.findFirstVisibleItemPosition()int findFirstVisibleItemPosition()
RecyclerView.NO_POSITION
if there aren't any visible items.findFirstCompletelyVisibleItemPosition()int findLastCompletelyVisibleItemPosition()
RecyclerView.NO_POSITION
if there aren't any visible items.findLastVisibleItemPosition()int findLastVisibleItemPosition()
RecyclerView.NO_POSITION
if there aren't any visible items.findLastCompletelyVisibleItemPosition()