android-advancedrecyclerview - 帶高級功能的RecyclerView

介紹:

帶高級功能的RecyclerView (滑動刪除,拖動排序,分組,下拉擴展等)

運行效果:

android-advancedrecyclerview - 帶高級功能的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


項目主頁:http://www.baiduhome.net/lib/view/home/1427959984834

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!