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 ...
Get Migrating to Android for iOS Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.