Week 7 - Property Animation, Concurrent Linked Queues Flashcards
What is the difference between property animation and view animation?
Property animation uses an Animator to modify an object’s properties over time. This kind of animation does not only affect an object’s display.
View animation affects only a view’s display and not its properties.
What are the two main types of Android animation?
Property animation and view animation.
What are the two types of view animation?
Tween animation and frame animation.
What is the difference between tween animation and frame animation?
Tween animation performs a series of transformations on a views display. They are limited to simple animations.
Frame animation creates an animation by showing a rapid sequence of images, similar to how a TV works.
What is ValueAnimator and how does it work?
It is used to morphed between two values by specifying a listener that is invoked according to a timing engine.
What is ObjectAnimator and how does it work?
It is a subclass of ValueAnimator and is easier to use. It requires set methods for the target properties to be morphed. It requires less coding than ValueAnimator.
What is ViewPropertyAnimator and how does it work?
It is similar to ObjectAnimator but is specifically for Views. It is even simpler to use.
Why use concurrent data structures?
They contain methods that are thread-safe so that the data structure can be shared between multiple threads of execution and be modified without introducing errors.