View中获取不适当的位置在advancedrecyclervi

View中获取不适当的位置在advancedrecyclervi

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

问题描述

我使用制作益智游戏并制作拖放功能在网格视图中,但它没有提供适当的网格变化位置,

问题由我在这里进行完整的解释,并在库中作为未解决的问题添加:





是否有其他简单的方法通过拖放来移动网格而不使用任何库或者是否存在其他可用的其他库可以提供方便的方法吗?如果可能的话,请给我解决方案,不要使用任何库
谢谢。

解决方案

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

 存储库{
maven {urlhttps://jitpack.io}
}

依赖关系{
编译'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.Thanks.

解决方案

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.

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

09-02 17:13