-
public interface IFlexibleLayoutManagerWrapper interface for any non-conventional LayoutManagers.
This interface will make any third LayoutManager suitable for FlexibleAdapter.
-
-
Method Summary
Modifier and Type Method Description abstract intgetOrientation()Finds the layout orientation of the RecyclerView, no matter which LayoutManager is in use. abstract intgetSpanCount()Helper method to retrieve the number of the columns (span count) of the given LayoutManager. abstract intfindFirstCompletelyVisibleItemPosition()Helper method to find the adapter position of the first completely visible view[for each span], no matter which Layout is. abstract intfindFirstVisibleItemPosition()Helper method to find the adapter position of the first partially visible view[for each span], no matter which Layout is. abstract intfindLastCompletelyVisibleItemPosition()Helper method to find the adapter position of the last completely visible view[for each span], no matter which Layout is. abstract intfindLastVisibleItemPosition()Helper method to find the adapter position of the last partially visible view[for each span], no matter which Layout is. -
-
Method Detail
-
getOrientation
abstract int getOrientation()
Finds the layout orientation of the RecyclerView, no matter which LayoutManager is in use.
-
getSpanCount
abstract int getSpanCount()
Helper method to retrieve the number of the columns (span count) of the given LayoutManager.
All Layouts are supported.
-
findFirstCompletelyVisibleItemPosition
abstract int findFirstCompletelyVisibleItemPosition()
Helper method to find the adapter position of the first completely visible view[for each span], no matter which Layout is.
-
findFirstVisibleItemPosition
abstract int findFirstVisibleItemPosition()
Helper method to find the adapter position of the first partially visible view[for each span], no matter which Layout is.
-
findLastCompletelyVisibleItemPosition
abstract int findLastCompletelyVisibleItemPosition()
Helper method to find the adapter position of the last completely visible view[for each span], no matter which Layout is.
-
findLastVisibleItemPosition
abstract int findLastVisibleItemPosition()
Helper method to find the adapter position of the last partially visible view[for each span], no matter which Layout is.
-
-
-
-