android-advancedrecyclerview - 带高级功能的RecyclerView
jopen
10年前
介绍:
带高级功能的RecyclerView (滑动删除,拖动排序,分组,下拉扩展等)
运行效果:
Getting started
This library is published on jCenter. Just add these lines tobuild.gradle.
dependencies { compile 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.6.2' }
Usage
Please check the implementation of the simple examples.
Primary classes/interfaces
Drag & Drop related classes/interfaces
Class/Interface name | Description |
---|---|
RecyclerViewDragDropManager | Provides Drag & Drop sort operation |
DraggableItemAdapter<T> | Implement this interface on your RecyclerView.Adapter |
DraggableItemViewHolder | Implement this interface on your RecyclerView.ViewHolder |
Swiping related classes/interfaces
Class/Interface name | Description |
---|---|
RecyclerViewSwipeManager | Provides Swipe operation |
SwipeableItemAdapter<T> | Implement this interface on your RecyclerView.Adapter |
SwipeableItemViewHolder | Implement this interface on your RecyclerView.ViewHolder |
Expandable item related classes/interfaces
Class/Interface name | Description |
---|---|
RecyclerViewExpandableItemManager | Provides Expandable item function |
ExpandableItemViewHolder | Implement this interface on your RecyclerView.ViewHolder |
ExpandableItemAdapter<GVH, CVH> | Implement this interface on your RecyclerView.Adapter |
ExpandableDraggableItemAdapter<GVH, CVH> | (optional) Implement this interface on your RecyclerView.Adapter to support Drag & Drop sort operation |
ExpandableSwipeableItemAdapter<GVH, CVH> | (optional) Implement this interface on your RecyclerView.Adapter to support Swipe operation |
RecyclerView decorations
Class/Interface name | Description |
---|---|
ItemShadowDecorator | Drop shadow decoration for pre-Lollipop devices |
SimpleListDividerDecorator | Simple list divider decoration |
Misc.
Class name | Description |
---|---|
RecyclerViewTouchActionGuardManager | Suppress scrolling while item animations are running |
AbstractDraggableItemViewHolder | ViewHolder class which implements boilerplate code of theDraggableItemViewHolderinterface |
AbstractSwipeableItemViewHolder | ViewHolder class which implements boilerplate code of theSwipeableItemViewHolderinterface |
AbstractExpandableItemViewHolder | ViewHolder class which implements boilerplate code of theExpandableItemViewHolderinterface |
AbstractDraggableSwipeableItemViewHolder | ViewHolder class which implements boilerplate code of theDraggableItemViewHolderand theSwipeableItemViewHolderinterfaces |
AbstractExpandableItemAdapter<GVH, CVH> | Adapter class which implements boilerplate code of theExpandableItemAdapterinterface |
</div>