Week 7 - Property Animation, Concurrent Linked Queues Flashcards

0
Q

What is the difference between property animation and view animation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What are the two main types of Android animation?

A

Property animation and view animation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two types of view animation?

A

Tween animation and frame animation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between tween animation and frame animation?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is ValueAnimator and how does it work?

A

It is used to morphed between two values by specifying a listener that is invoked according to a timing engine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is ObjectAnimator and how does it work?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is ViewPropertyAnimator and how does it work?

A

It is similar to ObjectAnimator but is specifically for Views. It is even simpler to use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why use concurrent data structures?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly