在android和检测位置拖放imageview

问题描述:

我正在制作一个拖放图像的应用程序。我需要让应用程序的用户可以将图像从一个点移动到另一个屏幕,例如他会触摸图像并将其拖动到屏幕上有一个图像的位置,并且当两个图像叠加时,屏幕上显示一条消息,我该怎么办?在android和检测位置拖放imageview

非常感谢

我认为这可以帮助你的拖放

https://www.youtube.com/watch?v=H3qr1yK6u3M

要知道图像位置,你需要用的onTouchEvent工作:

How to get the Touch position in android?