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
  • PrintPrint

9. Animation

Animation helps users understand the functionality of your app without the need for explicit instruction. Android provides a few animation APIs with different use cases. Drawable and view animations offer the best compatibility, but they only operate on views. Starting with Android 3.0, the property animation framework is the preferred method for creating animations. This framework removes the limitations of view animations and can animate any object, not just views.

In this chapter, you’ll learn that you can use drawable animations to create sprite-style animation; that the view animation framework provides compatibility for older versions of Android, but that it can be used only on views; that the ObjectAnimator is used to change the properties of an object over time; that interpolators change the rate at which an animation is applied, creating a more natural animation; and that the ViewPropertyAnimator lets you animate views using a series of chainable method calls.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint