Android 视图问题

发布于 2024-11-27 11:41:02 字数 234 浏览 0 评论 0原文

我有以下代码: http://pastebin.com/hgHePi4K

(无法做到)

我的问题是,每当我拖动一个图块然后释放它,它不会以图形方式捕捉到网格。我的调试语句(BFW.showMessage)全部显示出来,并显示正确的信息,但是,我看不到贴靠到网格的图块,只能看到我发布它的位置。 提前致谢。

I have the following code:
http://pastebin.com/hgHePi4K

(Couldn't manage to it)

My problem is that, whenever I drag a tile and then release it, it doesn't snap to the grid graphically. My debug statements (BFW.showMessage) all show up, and show correct information however, I can't see the Tile snapped to grid, only where I released it.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

修复了这个问题,绝对 x 坐标未正确更新,因此图块仍保留在其最后移动位置。
不管怎样,谢谢你的帮助。

Fixed it, the absoulte x coordinate wasn't properly updated, therefore the tile remained on its last move position.
Thanks for the help anyways.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文