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 and check if they are inside my View. (I noticed that MotionEvent has getters for both x and y)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MotionEventis the correct way to go for this purpose.They’re almost identical, although
MotionEventis for touch, but I think you’ve already figured that out.