Android CS323 Cornez
Lab 11: Basic Touch Sensors
Exercise: Fling a Billiard Ball
This exercise allows users to fling a billiard ball across the screen in any direction.
When the billiard ball
hits the edges of the screen, it reverses direction as if it is bouncing off a wall. Friction
should be applied to movement so that the ball eventually comes to a halt.
Research GestureDetector and OnGestureListener.
Question 1: How is the velocity of a fling detected?
Question 2: Can the velocity of a fling be detected across just the x-axis?
Question 3: Identify the callback methods used to detect gestures.

Drawables:
