在AdvancedRecyclerview库中使用可拖动Gridview时,在GridView拖放中获取不适当的位置 [英] Getting inappropriate positions in GridView Drag and Drop when using Draggable Gridview in advancedrecyclerview library

查看:98
本文介绍了在AdvancedRecyclerview库中使用可拖动Gridview时,在GridView拖放中获取不适当的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 android-advancedrecyclerview库制作益智游戏并进行拖放网格视图中的功能,但未提供适当的网格位置更改

问题在这里由我问及完整的解释,并作为开放式问题添加到库中:

https://github.com/h6ah4i/android-advancedrecyclerview/issues/269

是否有其他简单的方法可以通过拖放来移动网格而无需使用任何库,或者是否有可用的其他库可以提供便捷的方法来实现?如果可能的话,请在不使用任何库的情况下为我提供解决方案.

解决方案

此问题现已解决,他们已经更新了代码并添加了新方法来支持我建议的功能,并将在下一版库.到现在为止,您都可以通过JitPack在库中使用此分支来使用此功能,并且此功能将很快添加到库中.

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.h6ah4i:android-advancedrecyclerview:c9763e000fa8e80e6410f4a9d500e21b0e58a7e5'
}

您可以在此问题的完整说明中此处. >

I am using android-advancedrecyclerview library to make a puzzle game and made drag and drop functionality in Grid View but it does not provide appropriate changed positions of Grids,

Issue is asked by me with full explanation here and added as open issue in library:

https://github.com/h6ah4i/android-advancedrecyclerview/issues/269

Is there any other simple way to move grids by drag and drop them without using any library or is there any available other library that can provide convenient way to do it? If possible please give me solution without using any library.

解决方案

This issue is resolved now and they had updated their code and added new methods to support my suggested functionalities and it will be added in next release of this library. And till now you can use this function by using this branch for library via JitPack and this functionality will be added soon in library.

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.h6ah4i:android-advancedrecyclerview:c9763e000fa8e80e6410f4a9d500e21b0e58a7e5'
}

You can see this in full explanation Here for this issue.

这篇关于在AdvancedRecyclerview库中使用可拖动Gridview时,在GridView拖放中获取不适当的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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