1、基础功能
var adapter = ListAdapter(layoutId,list)
recyclerView.layoutManager=layoutManager
recyclerView.adapter=adapter
if(isFirstPage){
adater.list=list
adapter.addData=data
// 显示加载结束
adapter.getLoadMoreModule().loadMoreEnd()
//显示加载完成
adapter.getLoadMoreModule().loadMoreComplete()
2、动画
adapter.animationEnable=true
adapter.setAnimationWithDefault(BaseQuickAdapter.AnimationType.SlideInBottom)
// 其他动画效果:
// BaseQuickAdapter.AnimationType.AlphaIn
// BaseQuickAdapter.AnimationType.ScaleIn
// BaseQuickAdapter.AnimationType.SlideInLeft
// BaseQuickAdapter.AnimationType.SlideInRight
// 自定义动画 ,调用方法不一样:mAnimationAdapter.setAdapterAnimation(CustomAnimation());
3、拖拽
adapter.getDraggableModule().setDragEnabled(true);
adapter.getDraggableModule().setOnItemDragListener(onItemDragListener);
// 拖拽监听
OnItemDragListe