【问题标题】:Android Gridview drag and drop example [duplicate]Android Gridview拖放示例[重复]
【发布时间】:2011-09-09 17:07:43
【问题描述】:

可能重复:
Android GridView reorder elements via Drag and Drop

谁能给我一些链接,我可以从中学习在 Android GridView 中拖放。

【问题讨论】:

标签: android


【解决方案1】:

对于网格视图中的拖放图标,

您可以参考以下教程...

对它很有帮助。

Drag-Drop for an Android GridView

【讨论】:

  • Thia is a good example 但我们不得不使用 itemcell,@Chirag_CID 如何在 gridview 项目中实现拖放操作,其中 gridview 已经被填充,并且有一个放置文件的放置区
  • 迟到的答案,但对于放置区,这可能会有所帮助:code.google.com/p/android-gridview-drag-and-drop,但您可能需要根据需要修改代码,因为此放置区会删除放入其中的项目。
【解决方案2】:

在这里聚会有点晚了,但你也许可以使用我为 android 编写的名为 DraggableGridView 的库:

https://github.com/thquinn/DraggableGridView

它是 ViewGroup 的扩展。长按拖动,包括动画等。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-01
    • 2023-03-19
    • 1970-01-01
    相关资源
    最近更新 更多