Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 8. SpotOn Game App: Property Animation, ViewPropertyAnimator, Animat...

8. SpotOn Game App: Property Animation, ViewPropertyAnimator, AnimatorListener, Thread-Safe Collections, Default SharedPreferences for an Activity

Objectives

In this chapter you’ll:

  • Create a simple game app that’s easy to code and fun to play.

  • Use ViewPropertyAnimators to group animations that move and resize ImageViews.

  • Respond to animation lifecycle events with an AnimatorListener.

  • Process click events for ImageViews 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.


  

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