在两个 RecyclerView 之间拖放 [英] Drag and Drop between two RecyclerView
本文介绍了在两个 RecyclerView 之间拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在两个不同的 RecyclerView
之间进行拖放等功能?
Is it possible to have feature like drag and drop between two different RecyclerView
?
我找到了 库,用于在 RecyclerView
中拖放.请帮助我改进此功能.
I found library for drag and drop within RecyclerView
. Please help me to improve this functionality.
推荐答案
我在我们的一个项目中有类似的需求.您可以查看我在这里上传的示例代码 - RecyclerView Drag and Drop
I had a similar requirement in one of our projects. You can check out the sample code that I have uploaded here - RecyclerView Drag and Drop
这是符合您要求的非常基本的代码- 在单个回收站视图内以及两个不同的回收站视图之间拖放.
It is a very basic code that matches your requirement - Drag and drop within a single recyclerview as well as between two different recyclerviews.
希望这会有所帮助.
这篇关于在两个 RecyclerView 之间拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文