Order elements of a RecyclerView via drag and drop

六月ゝ 毕业季﹏ 提交于 2019-12-08 14:58:40

问题


I am developing an application for Android which is a RecyclerView containing LinearLayout through a list of custom items. How can you order these items using drag and drop?


回答1:


Now it's very easy in Android. No need to use any third party libraries. Android now supports RecycleView drag and drop out of the box, please use the below link for details:

Medium | Drag and Swipe with RecyclerView



来源:https://stackoverflow.com/questions/30300356/order-elements-of-a-recyclerview-via-drag-and-drop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!