Android的/ Java的 - 寻找拖放GridView的例子用的TextView [英] Android / Java - Seeking Drag and Drop GridView Example with textView

查看:234
本文介绍了Android的/ Java的 - 寻找拖放GridView的例子用的TextView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图构建一个包含一个简单的GridView可以拖拽一个文件管理器 - 以及每个文件夹重命名的能力。

I'm attempting to build a file manager containing a simple gridView which can be dragged and dropped - as well as the ability to rename each folder.

我已经能够迄今为止找到的最接近的是这个例子:

The closest I've been able to find thus far is this example:

的http:// blahti .word press.com / 2012/03/03 /改进-拖放换的GridView /

但我无法弄清楚如何添加可拖动,除了在本例中的瓦降到一个TextView。

However I am unable to figure out how to add a textView which can be dragged and dropped in addition to the tiles in the example.

到目前为止,我已经试过这样:

Thus far I have tried this:

的Andr​​oid / Java的 - 添加到TextView的拖放GridView的教程/示例

不过,我想知道是否有人已经看到了这如何可以完成一个例子。

However I am wondering if anyone has seen an example of how this can be accomplished.

我想一拖和一个TextView拖放GridView控件是为任何一个文件管理器或自定义启动一个常见的​​实现 - 让我感到惊讶我一直没能找到任何例子。

I imagine a drag and drop gridview with a textView would be a common implementation for either a file manager or a custom launcher - so I am surprised I have not been able to find any examples.

在此先感谢!

推荐答案

试试这个lib和它具有样本项目还

try this lib and it have sample project also

https://github.com/thquinn/DraggableGridView

这篇关于Android的/ Java的 - 寻找拖放GridView的例子用的TextView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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