Package 

Interface IFlexibleLayoutManager


  • 
    public interface IFlexibleLayoutManager
    
                        

    Wrapper interface for any non-conventional LayoutManagers.

    This interface will make any third LayoutManager suitable for FlexibleAdapter.

    • Method Summary

      Modifier and Type Method Description
      abstract int getOrientation() Finds the layout orientation of the RecyclerView, no matter which LayoutManager is in use.
      abstract int getSpanCount() Helper method to retrieve the number of the columns (span count) of the given LayoutManager.
      abstract int findFirstCompletelyVisibleItemPosition() Helper method to find the adapter position of the first completely visible view[for each span], no matter which Layout is.
      abstract int findFirstVisibleItemPosition() Helper method to find the adapter position of the first partially visible view[for each span], no matter which Layout is.
      abstract int findLastCompletelyVisibleItemPosition() Helper method to find the adapter position of the last completely visible view[for each span], no matter which Layout is.
      abstract int findLastVisibleItemPosition() Helper method to find the adapter position of the last partially visible view[for each span], no matter which Layout is.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.