From 0a523c82126390c664d8cc441e54acf6aa1fb5f4 Mon Sep 17 00:00:00 2001 From: enabot-zj <57252697+enabot-zj@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:19:09 +0800 Subject: [PATCH 1/3] DragAndSwipeAdapter implements DraggableModule --- .../adapter/DragAndSwipeAdapter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/DragAndSwipeAdapter.java b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/DragAndSwipeAdapter.java index 39b1c191d..f0e424c63 100644 --- a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/DragAndSwipeAdapter.java +++ b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/DragAndSwipeAdapter.java @@ -32,4 +32,10 @@ protected void convert(@NotNull BaseViewHolder helper, @NotNull String item) { } helper.setText(R.id.tv, item); } + + @NotNull + @Override + public BaseDraggableModule addDraggableModule(@NotNull BaseQuickAdapter baseQuickAdapter) { + return new BaseDraggableModule(baseQuickAdapter); + } } From 6af17c491ae01016997e9a9c50a8bd28599abd28 Mon Sep 17 00:00:00 2001 From: enabot-zj <57252697+enabot-zj@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:19:41 +0800 Subject: [PATCH 2/3] LoadMoreAdapter implements LoadMoreModule --- .../adapter/LoadMoreAdapter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/LoadMoreAdapter.java b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/LoadMoreAdapter.java index 00a752363..3dc5956c9 100644 --- a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/LoadMoreAdapter.java +++ b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/LoadMoreAdapter.java @@ -61,4 +61,10 @@ public void updateDrawState(TextPaint ds) { ds.setUnderlineText(true); } }; + + @NotNull + @Override + public BaseLoadMoreModule addLoadMoreModule(@NotNull BaseQuickAdapter baseQuickAdapter) { + return new BaseLoadMoreModule(baseQuickAdapter); + } } From 7432f2442c98dbdee2aae1d68223ca7be0dcc85c Mon Sep 17 00:00:00 2001 From: enabot-zj <57252697+enabot-zj@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:20:16 +0800 Subject: [PATCH 3/3] UpFetchAdapter implements UpFetchModule --- .../adapter/UpFetchAdapter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/UpFetchAdapter.java b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/UpFetchAdapter.java index 192af5377..2c01cd0d3 100644 --- a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/UpFetchAdapter.java +++ b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/adapter/UpFetchAdapter.java @@ -36,4 +36,10 @@ protected void convert(@NotNull BaseViewHolder helper, @NotNull Movie item) { break; } } + + @NotNull + @Override + public BaseUpFetchModule addUpFetchModule(@NotNull BaseQuickAdapter baseQuickAdapter) { + return new BaseUpFetchModule(baseQuickAdapter); + } }