我们可以在 Android 中创建多点触控吗? 我有多个图像,必须将这些图像一起拖放到 我的设备。是否可以?如果可能的话,任何想法都会有很大帮助。
谢谢
最佳答案
您需要拦截 View 中的触摸事件。实现一个 onTouchListener
并在函数内部:
onTouch (View v, MotionEvent event){
int count=getPointerCount();
if(count >1){
// it means there are more than 1 point touched on the screen.
}
}
这仅在 API 5 之后可用
关于android - 我们如何在android中创建多点触控?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8192209/