Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The spinner is implemented using Android's drawing APIs to draw wedges of a circle on a canvas, and draw text on top. The backend keeps track of the amount of rotation applied so far, and drawing is done relative to that amount of rotation. The spin animation is achieved by increasing or decreasing the degree rotation at timed intervals, and redrawing the wheel. A swipe gesture is detected by dividing the screen into quadrants and waiting for a finger-swipe that starts and ends in adjacent quadrants.
  • The victor is determined by precomputing the final wheel spin once the user starts spinning the wheel, and computing which wedge is under the pointer drawn on the screen when the wheel is in its final location. The winner is predetermined so that a user can't game the system by trying to stop the wheel in a particular position.

Restaurant Details

  • Use dice to show rating and location, which are widely liked by users (“It’s so cute!”)
  • Use the classical color and style of a hyperlink to suggest that the texts for phone number and address is tappable.
  • Use standard dial activity of Android and Google map Android API

Use dice to show rating and location, which are widely liked by users (“It’s so cute!”)
Use the classical color and style of a hyperlink to suggest that the texts for phone number and address is tappable.
Use standard dial activity of Android and Google map Android AP

Evaluation

Reflection