O'Reilly logo

Android™ for Programmers: An App-Driven Approach by Michael Morgano, Abbey Deitel, Harvey M. Deitel, Paul J. Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

Image

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.

Outline

8.1 Introduction

8.2 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required