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
Share this Page URL
Help

9. Animation > Creating View Animations

Creating View Animations

The primary method of creating animations prior to Android 3.0 was the view animation system. View animation provides a series of built-in animation operations that generate in-between, or tween, views. You supply the starting and ending values, and the animation framework will transform the displayed view. This system is simple to implement, but it has a few drawbacks. First, it’s limited to operating on View objects. If you want to animate something that is not a view, you’ll need to do so yourself. Second, it operates only on a default set of properties; it does not affect other properties. Finally, view animation alters only how the view is drawn, not where it is positioned. Importantly, the rectangular hit area of views is not moved during a view animation—a common bug found in animation code. You need to alter the view after the animation is finished to update its position.


  

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


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