I'm wondering if MotionEvent
in Android is equivalent to MouseEvent
in Java?
All I'm attempting to do is get the x
and y
coordinates an开发者_Python百科d check if they are inside my View. (I noticed that MotionEvent
has getters for both x and y)
All I'm attempting to do is get the x and y coordinates and check if they are inside my View.
MotionEvent
is the correct way to go for this purpose.
I'm wondering if
MotionEvent
in Android is equivalent toMouseEvent
in Java?
They're almost identical, although MotionEvent
is for touch, but I think you've already figured that out.
精彩评论