Android通过拖放重新排序ListView项目 [英] Android Reordering ListView items with drag and drop

查看:36
本文介绍了Android通过拖放重新排序ListView项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有自定义的 ListView 和自定义布局,其中一个 TextView 用于显示文本,另一个 ImageView 用于长按拖放以重新排序 ListView 项目,如下图所示.请帮助我!

I have custom ListView with custom Layout consisting of one TextView for display text and another ImageView for long pressing to drag and drop for reordering ListView items like image below.Please help me!

推荐答案

这是一个不错的库 DSLV.非常流畅和精细的工作.

Here is a nice library DSLV. very smooth and fine working.

https://github.com/bauerca/drag-sort-listview.

这篇关于Android通过拖放重新排序ListView项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆