8. SpotOn Game App
Objectives
In this chapter you’ll:
• Create a simple gamepp that’s easy to code and fun to play.
• Goup animations that move and resize ImageView
s with ViewPropertyAnimator
s.
• Respond to animation lifecycle events with an AnimatorListener
.
• Process click events for ImageView
s and touch events for the screen.
• Use the thread-safe ConcurrentLinkedQueue
collection from the java.util.concurrent
package to allow concurrent access to a collection from multiple threads.
• Use an Activity
’s default SharedPreferences
file.
Outline
8.2 Test-Driving the SpotOn Game App
Get Android How to Program now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.