Property Animations: API Level 11
In API Level 11, Android introduced a newer and more robust animation framework, property animation. If backward-compatibility is not your concern, you should use this framework instead of the older animation method. Not only does this framework affect how View elements are rendered visually, it also changes the target object properties with the defined animation methods.
To elaborate the potential problem of using the older view animation framework, let’s say that a button appears to be moved or resized due to the animation code, but the View geometry attributes actually remain unchanged, meaning the onClick region remains the same while the button appears in a different place. This isn’t good when the app ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access