Deck 10: Move Creating Animation and Graphics

Full screen (f)
exit full mode
Question
Frame animation assigns a sequence of photos to play as in a slide show with a predefined interval between images.
Use Space or
up arrow
down arrow
to flip the card.
Question
An instance of the AnimationDrawable is instantiated as a class variable because it is used in multiple methods within the Main class.
Question
In the Linear layout, an ImageView control displays the animation images.
Question
The oneshot attribute is added to the code in the opening ____ tag.

A) logic list
C) linked list
B) animation-list
D) drawable
Question
Insert an ImageView control and its properties in the main.xml file to specify precise settings for the ____.

A) button
C) layout
B) control
D) frame
Question
To create an Android application with Frame or Tween animation, which of the following processes must the developer be able to perform?

A) Adding a Frame animation XML file to the project
B) Coding the OnClickListeners for button controls
C) Running the frame-by-frame animation application
D) All of the above
Question
To create a layout that displays two controls side by side, you can nest a(n) ____ within a Linear layout.

A) Tween animation
C) Frame animation
B) Relative layout
D) Animation-list
Question
The Package Name for the Wave Animation Project is net.androidbootcamp.waveanimation.
Question
Tween animation creates an animation by performing a series of ____ on a single image such as position, size, rotation, and transparency on the contents of a View object.

A) transformations
C) animations
B) projections
D) waves
Question
By setting the android:oneshot attribute of the animation-list to ____, the animation plays repeatedly until the Stop Animation button is tapped.

A) item
C) true
B) main
D) false
Question
Animation of an object by a motion tween uses a uniform transition type such as rotating an infinite number of times.
Question
The layout specifications for the frame image and button controls reside within the main.xml file.
Question
Tween animation uses a sequence of images similar to Frame animation.
Question
In the Android code, an animation-list root element references images stored in the drawable folders.
Question
Android provides three types of animation: Frame, Wave, and Tween animation.
Question
A motion tween specifies the end state of an object.
Question
The ____ property can be included in the animation-list code to determine how many times to play the animation.

A) series
C) oneshot
B) image
D) layout
Question
____, an attribute of the animation-list, determines whether an animation plays once and then stops or continues to play until the Stop Animation button is tapped.

A) Class
C) Motion tween
B) AnimationDrawable
D) Android:oneshot
Question
Frame animation is also called ____ animation.

A) Tween
C) stochastic
B) frame-by-frame
D) sequence
Question
Animation displays many ____ in rapid succession or displays many changes to one image to create an illusion of movement.

A) orientations
C) images
B) activities
D) apps
Question
A series of __________________ on a single image in Tween animations can include changes in position, size, rotation, and transparency on the contents of a View object.
Question
Applying the Tween rotation animation, the ____ method begins animating a View object by calling the AnimationUtils class utilities to access the resources necessary to load the animation.

A) viewAnimation
C) newAnimation
B) getAnimation
D) startAnimation
Question
If android:oneshot="____," the animation plays once and then stops and displays the last frame.

A) list
C) true
B) element
D) false
Question
To create the illusion of movement, a cartoon image can be displayed on the screen and repeatedly replaced by a new image that is similar, but slightly advanced in the ____________________.
Question
When the XML file is added to the Android project, the Resource type Drawable is selected and the animation-list is selected as the ____ element of the XML code.

A) main
C) last
B) first
D) root
Question
The Background property of an image can be set to any full Drawable resource such as a . png file, a ____ file, or a solid color designated with hexadecimal code such as #FF0000 for red.

A) .doc
C) .pdf
B) 9-patch image
D) drawable
Question
In Android development, frame-based animations and image transitions are defined as ____.

A) instances
C) drawables
B) images
D) objects
Question
Coding the tween.xml file layout to display an ImageView control includes creating an Android XML ____ file.

A) Image
C) Content
B) Layout
D) Control
Question
____ is a cross-platform graphics API that specifies a standard software interface for 3D graphics processing hardware and uses a coordinate system to map the image to the screen.

A) 3DGraphics
C) GraphicsLibrary
B) AnimationGraphics
D) OpenGL
Question
Drawable images in an animation-list are connected to the imgFrame instance by the ____ method.

A) getBackgroundResource
C) getBackgroundReference
B) setBackgroundImage
D) setBackgroundResource
Question
A(n) ____________________ specifies a start state of an object, and then animates the object using a uniform transition type such as rotating a predetermined number of times or an infinite number of times.
Question
The ____ provides the methods for Drawable animations to create a sequence of frame-by-frame images.

A) switch
C) AnimationDrawable class
B) emulator
D) startAnimation method
Question
Maya and Cinema 4D are examples of complex programs that can be used to create professional Android ____________________.
Question
A(n) ____ is a transition that changes objects from one state to another, such as by moving, rotating, growing, or shrinking.

A) tween effect
C) animation-list
B) animation
D) emulator
Question
A 9-patch image is a special image that has ____ "stretching" areas that maintain the same look on different screen sizes.

A) predefined
C) undefined
B) unlimited
D) open
Question
Button controls use ____ to await user interaction.

A) getButton
C) btnStart
B) setOnClickListener
D) btTween
Question
A sequence of animation instructions defines the Tween animation using either ____________________ or Android code.
Question
For the application in Chapter 10, the Android Manifest file must be updated to include the ____ and to remove the title bar in the theme to provide more display room for the animation.

A) second Activity
C) application
B) animations
D) tween
Question
findViewById(R.id.imgNew) ____ the ImageView that accesses imgNew in the XML layout file.

A) instantiates
C) animates
B) displays
D) sets
Question
A new ____________________ project has an Application Name, a Package Name, and an Activity name.
Question
Android uses an XML file-creator utility that supports 10 different ____________________ types.
Question
After associating AnimationDrawable with the animation images and coding the buttons, you can use the ____________________( ) and ____________________( ) methods of the drawable objects to control the Frame animation.
Question
The AnimationDrawable object can be accessed using the ____________________ method.
Question
Creating a new Android XML file requires the resource type, a filename, and a(n) ____________________.
Question
The start( ) method launches the animation xml file displaying the ____________________ items.
Question
Buttons using a setOnClickListener await user ____________________.
Question
Common ____________________ animations include rotating timers, e-mail symbols, Activity icons, page-loading animations, cartoons, and other useful user interface elements.
Question
____________________ and Tween animation are two types of animation provided by Android.
Question
Connect the ____________________ for the animation-list in an animation xml file by typing imgFrame.setBackgroundResource(R.drawable.animation).
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/49
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Move Creating Animation and Graphics
1
Frame animation assigns a sequence of photos to play as in a slide show with a predefined interval between images.
True
2
An instance of the AnimationDrawable is instantiated as a class variable because it is used in multiple methods within the Main class.
True
3
In the Linear layout, an ImageView control displays the animation images.
True
4
The oneshot attribute is added to the code in the opening ____ tag.

A) logic list
C) linked list
B) animation-list
D) drawable
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
5
Insert an ImageView control and its properties in the main.xml file to specify precise settings for the ____.

A) button
C) layout
B) control
D) frame
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
6
To create an Android application with Frame or Tween animation, which of the following processes must the developer be able to perform?

A) Adding a Frame animation XML file to the project
B) Coding the OnClickListeners for button controls
C) Running the frame-by-frame animation application
D) All of the above
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
7
To create a layout that displays two controls side by side, you can nest a(n) ____ within a Linear layout.

A) Tween animation
C) Frame animation
B) Relative layout
D) Animation-list
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
8
The Package Name for the Wave Animation Project is net.androidbootcamp.waveanimation.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
9
Tween animation creates an animation by performing a series of ____ on a single image such as position, size, rotation, and transparency on the contents of a View object.

A) transformations
C) animations
B) projections
D) waves
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
10
By setting the android:oneshot attribute of the animation-list to ____, the animation plays repeatedly until the Stop Animation button is tapped.

A) item
C) true
B) main
D) false
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
11
Animation of an object by a motion tween uses a uniform transition type such as rotating an infinite number of times.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
12
The layout specifications for the frame image and button controls reside within the main.xml file.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
13
Tween animation uses a sequence of images similar to Frame animation.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
14
In the Android code, an animation-list root element references images stored in the drawable folders.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
15
Android provides three types of animation: Frame, Wave, and Tween animation.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
16
A motion tween specifies the end state of an object.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
17
The ____ property can be included in the animation-list code to determine how many times to play the animation.

A) series
C) oneshot
B) image
D) layout
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
18
____, an attribute of the animation-list, determines whether an animation plays once and then stops or continues to play until the Stop Animation button is tapped.

A) Class
C) Motion tween
B) AnimationDrawable
D) Android:oneshot
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
19
Frame animation is also called ____ animation.

A) Tween
C) stochastic
B) frame-by-frame
D) sequence
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
20
Animation displays many ____ in rapid succession or displays many changes to one image to create an illusion of movement.

A) orientations
C) images
B) activities
D) apps
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
21
A series of __________________ on a single image in Tween animations can include changes in position, size, rotation, and transparency on the contents of a View object.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
22
Applying the Tween rotation animation, the ____ method begins animating a View object by calling the AnimationUtils class utilities to access the resources necessary to load the animation.

A) viewAnimation
C) newAnimation
B) getAnimation
D) startAnimation
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
23
If android:oneshot="____," the animation plays once and then stops and displays the last frame.

A) list
C) true
B) element
D) false
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
24
To create the illusion of movement, a cartoon image can be displayed on the screen and repeatedly replaced by a new image that is similar, but slightly advanced in the ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
25
When the XML file is added to the Android project, the Resource type Drawable is selected and the animation-list is selected as the ____ element of the XML code.

A) main
C) last
B) first
D) root
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
26
The Background property of an image can be set to any full Drawable resource such as a . png file, a ____ file, or a solid color designated with hexadecimal code such as #FF0000 for red.

A) .doc
C) .pdf
B) 9-patch image
D) drawable
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
27
In Android development, frame-based animations and image transitions are defined as ____.

A) instances
C) drawables
B) images
D) objects
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
28
Coding the tween.xml file layout to display an ImageView control includes creating an Android XML ____ file.

A) Image
C) Content
B) Layout
D) Control
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
29
____ is a cross-platform graphics API that specifies a standard software interface for 3D graphics processing hardware and uses a coordinate system to map the image to the screen.

A) 3DGraphics
C) GraphicsLibrary
B) AnimationGraphics
D) OpenGL
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
30
Drawable images in an animation-list are connected to the imgFrame instance by the ____ method.

A) getBackgroundResource
C) getBackgroundReference
B) setBackgroundImage
D) setBackgroundResource
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
31
A(n) ____________________ specifies a start state of an object, and then animates the object using a uniform transition type such as rotating a predetermined number of times or an infinite number of times.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
32
The ____ provides the methods for Drawable animations to create a sequence of frame-by-frame images.

A) switch
C) AnimationDrawable class
B) emulator
D) startAnimation method
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
33
Maya and Cinema 4D are examples of complex programs that can be used to create professional Android ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
34
A(n) ____ is a transition that changes objects from one state to another, such as by moving, rotating, growing, or shrinking.

A) tween effect
C) animation-list
B) animation
D) emulator
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
35
A 9-patch image is a special image that has ____ "stretching" areas that maintain the same look on different screen sizes.

A) predefined
C) undefined
B) unlimited
D) open
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
36
Button controls use ____ to await user interaction.

A) getButton
C) btnStart
B) setOnClickListener
D) btTween
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
37
A sequence of animation instructions defines the Tween animation using either ____________________ or Android code.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
38
For the application in Chapter 10, the Android Manifest file must be updated to include the ____ and to remove the title bar in the theme to provide more display room for the animation.

A) second Activity
C) application
B) animations
D) tween
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
39
findViewById(R.id.imgNew) ____ the ImageView that accesses imgNew in the XML layout file.

A) instantiates
C) animates
B) displays
D) sets
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
40
A new ____________________ project has an Application Name, a Package Name, and an Activity name.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
41
Android uses an XML file-creator utility that supports 10 different ____________________ types.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
42
After associating AnimationDrawable with the animation images and coding the buttons, you can use the ____________________( ) and ____________________( ) methods of the drawable objects to control the Frame animation.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
43
The AnimationDrawable object can be accessed using the ____________________ method.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
44
Creating a new Android XML file requires the resource type, a filename, and a(n) ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
45
The start( ) method launches the animation xml file displaying the ____________________ items.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
46
Buttons using a setOnClickListener await user ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
47
Common ____________________ animations include rotating timers, e-mail symbols, Activity icons, page-loading animations, cartoons, and other useful user interface elements.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
48
____________________ and Tween animation are two types of animation provided by Android.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
49
Connect the ____________________ for the animation-list in an animation xml file by typing imgFrame.setBackgroundResource(R.drawable.animation).
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 49 flashcards in this deck.