且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过拖放的Andr​​oid项目添加到扩展列表视图

更新时间:2023-11-16 16:57:58

您需要绘制自定义组件看到这个页面了解更多信息:

You would need to draw a custom component see this page for more information:

http://developer.android.com/guide/topics/ UI /自定义components.html

您将需要重写绘制方法和绘制自己的列表视图,以及你曾经从拖动物品的位置。这是一个复杂的任务,可能会令人望而生畏,但我真的没有见过有人做一拖之前的Andr​​oid下降。您可能是第一个!

You would need to override the draw method and draw your own list view as well as where ever your dragging your items from. This is a complicated task and may seem daunting but I haven't really seen anyone do a drag and drop on android before. You may be the first!

如果您需要简单地重新排序列表视图,那么你应该看看这个主题:

If you need to simply reorder your listview then you should check out this thread:

reordering通过拖动列表视图项目拖放采用了android