0

For this implementation, should I be using a MotionEvent or DragEvent for moving the ball in the meter? enter image description here

4

2 回答 2

0

这取决于您希望应用程序如何工作。我冒昧地猜测,对于 DragEvent,您需要在球上按住更长的单击才能进入 DragEvent。只要您触摸屏幕并移动手指,就会在其中拾取 MotionEvent。

这实际上与您希望为用户提供的用户体验有关。

于 2011-04-08T13:22:45.240 回答
0

使用 MotionEvent 时,您会阅读其历史记录。因此,您需要等待手势完成才能操纵球。

可以直接处理 DragEvent 输入。

于 2011-04-08T13:19:56.987 回答