We want to be able to compare the starting coordinate of a touch with the ending coordinate of a touch. How can we do it?
A) We cannot compare those coordinates.
B) We can compare them inside the onTouch method when it is called; nothing additional needed.
C) Store the ending coordinate in an instance variable and compare it to the starting coordinate of the touch inside the onTouch method.
D) Store the starting coordinate in an instance variable and compare it to the ending coordinate of the touch inside the onTouch method.
Correct Answer:
Verified
Q8: It is possible for a device to
Q9: Which method of the GestureDetector class should
Q10: It is possible to adjust the font
Q11: What does the getRawX method of MouseEvent
Q12: What does the getAction method of MouseEvent
Q14: The getX method of MouseEvent returns:
A) the
Q15: We can enable the user to move
Q16: One of the things we must do
Q17: One of the things we must do
Q18: The public field of the ViewGroup.MarginLayoutParams class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents