Interview Questions
You can use the following questions as a guide to consolidate your understanding of this chapter:
- What are some differences between
onTouchEvent() and onTouch()?
- What manifest tag should you use to indicate to Android Market that your application requires a touch screen?
- If you want a view to continue to receive touch events in the current touch sequence, do you return
true or false from the callback?
- What is the first action you’ll receive in a touch sequence?
- What is the last action you’ll receive?
- True or false: a
MotionEvent object is created for every single touch event.
- What precautions should you take when using
getSize() and getPressure() with MotionEvent objects?
- When is it appropriate to recycle a
MotionEvent object?
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial