-
Notifications
You must be signed in to change notification settings - Fork 554
5.x | Third party Layout Managers
jcuypers edited this page Feb 5, 2018
·
1 revision
The IFlexibleLayoutManager
interface will make any third party LayoutManager suitable for FlexibleAdapter.
Suppose you have any XYZLayoutManager
library imported, you create a new class by extending that XYZLayoutManager and implementing IFlexibleLayoutManager.
ℹ️ Note: If you use the internal SmoothScroller Layout Managers, those, already implement this interface.
public class FlexibleXYZLayoutManager
extends XYZLayoutManager
implements IFlexibleLayoutManager {
@Override
public int getOrientation() {
return ...
}
@Override
public int getSpanCount() {
return ...
}
@Override
public int findFirstCompletelyVisibleItemPosition() {
return ...
}
@Override
public int findFirstVisibleItemPosition() {
return ...
}
@Override
public int findLastCompletelyVisibleItemPosition() {
return ...
}
@Override
public int findLastVisibleItemPosition() {
return ...
}
}
- Update Data Set
- Selection modes
- Headers and Sections
- Scrollable Headers and Footers
- Expandable items
- Drag&Drop and Swipe
- EndlessScroll / On Load More
- Search Filter
- FastScroller
- Adapter Animations
- Third party Layout Managers
- Payload
- Smooth Layout Managers
- Flexible Item Decoration
- Utils
- ActionModeHelper
- AnimatorHelper
- EmptyViewHelper
- UndoHelper
* = Under revision!