Android 视图问题
我有以下代码: 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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.