Deck 10: Move Creating Animation and Graphics
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 10: Move Creating Animation and Graphics
1
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
B) projections
C) animations
D) waves
A) transformations
B) projections
C) animations
D) waves
A
2
Insert an ImageView control and its properties in the main.xml file to specify precise settings for the ____.
A) button
B) control
C) layout
D) frame
A) button
B) control
C) layout
D) frame
B
3
____, 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
B) AnimationDrawable
C) Motion tween
D) Android:oneshot
A) Class
B) AnimationDrawable
C) Motion tween
D) Android:oneshot
D
4
Frame animation is also called ____ animation.
A) Tween
B) frame-by-frame
C) stochastic
D) sequence
A) Tween
B) frame-by-frame
C) stochastic
D) sequence
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
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
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 50 flashcards in this deck.
Unlock Deck
k this deck
6
The layout specifications for the frame image and button controls reside within the main.xml file.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
A motion tween specifies the end state of an object.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
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 50 flashcards in this deck.
Unlock Deck
k this deck
9
Animation displays many ____ in rapid succession or displays many changes to one image to create the illusion of movement.
A) orientations
B) activities
C) images
D) apps
A) orientations
B) activities
C) images
D) apps
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Frame animation assigns a sequence of photos to play as in a slide show with a predefined interval between images.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
Android provides three types of animation: Frame, Wave, and Tween animation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
In the Android code, an animation-list root element references images stored in the drawable folders.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
The Package Name for the Wave Animation Project is net.androidbootcamp.waveanimation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Tween animation uses a sequence of images similar to Frame animation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
An instance of AnimationDrawable is instantiated as a class variable because it is used in multiple methods within the Main class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
To create a layout that displays two controls side by side, you can nest a(n) ____ within a Linear layout.
A) Tween animation
B) Relative layout
C) Frame animation
D) Animation-list
A) Tween animation
B) Relative layout
C) Frame animation
D) Animation-list
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In the Linear layout, an ImageView control displays the animation images.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
The ____ property can be included in the animation-list code to determine how many times to play the animation.
A) series
B) image
C) oneshot
D) layout
A) series
B) image
C) oneshot
D) layout
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
The oneshot attribute is added to the code in the opening ____ tag.
A) logic list
B) animation-list
C) linked list
D) drawable
A) logic list
B) animation-list
C) linked list
D) drawable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
By setting the android:oneshot attribute of the animation-list to ____, the animation plays repeatedly until the Stop Animation button is tapped.
A) item
B) main
C) true
D) false
A) item
B) main
C) true
D) false
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
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 50 flashcards in this deck.
Unlock Deck
k this deck
22
The ____ provides the methods for Drawable animations to create a sequence of frame-by-frame images.
A) switch
B) emulator
C) AnimationDrawable class
D) startAnimation method
A) switch
B) emulator
C) AnimationDrawable class
D) startAnimation method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Button controls use ____ to await user interaction.
A) getButton
B) setOnClickListener
C) btnStart
D) btTween
A) getButton
B) setOnClickListener
C) btnStart
D) btTween
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
____ 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
B) AnimationGraphics
C) GraphicsLibrary
D) OpenGL
A) 3DGraphics
B) AnimationGraphics
C) GraphicsLibrary
D) OpenGL
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
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
B) animations
C) application
D) tween
A) second Activity
B) animations
C) application
D) tween
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
A sequence of animation instructions defines the Tween animation using either ____________________ or Android code .
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Coding the tween.xml file layout to display an ImageView control includes creating an Android XML ____ file.
A) Image
B) Layout
C) Content
D) Control
A) Image
B) Layout
C) Content
D) Control
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
A 9-patch image is a special image that has ____ "stretching" areas that maintain the same look on different screen sizes.
A) predefined
B) unlimited
C) undefined
D) open
A) predefined
B) unlimited
C) undefined
D) open
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
A(n) ____ is a transition that changes objects from one state to another, such as by moving, rotating, growing, or shrinking.
A) tween effect
B) animation
C) animation-list
D) emulator
A) tween effect
B) animation
C) animation-list
D) emulator
Unlock Deck
Unlock for access to all 50 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
B) setBackgroundImage
C) getBackgroundReference
D) setBackgroundResource
A) getBackgroundResource
B) setBackgroundImage
C) getBackgroundReference
D) setBackgroundResource
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The Background property of an image can be set to any full Drawable resource such as a .p n g file, a ____ file, or a solid color designated with hexadecimal code such as #FF0000 for red.
A) .doc
B) 9-patch image
C) .pdf
D) drawable
A) .doc
B) 9-patch image
C) .pdf
D) drawable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
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 50 flashcards in this deck.
Unlock Deck
k this deck
33
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 50 flashcards in this deck.
Unlock Deck
k this deck
34
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
B) getAnimation
C) newAnimation
D) startAnimation
A) viewAnimation
B) getAnimation
C) newAnimation
D) startAnimation
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Nine-patch graphics are named for their nine areas, called patches, that ____ separately.
A) scale
B) index
C) list
D) draw
A) scale
B) index
C) list
D) draw
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Maya and Cinema 4D are examples of complex programs that can be used to create professional Android ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
The findViewById(R.id.imgNew) method ____ the ImageView that accesses imgNew in the XML layout file.
A) instantiates
B) displays
C) animates
D) sets
A) instantiates
B) displays
C) animates
D) sets
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
If android:oneshot="____," the animation plays once and then stops and displays the last frame.
A) list
B) element
C) true
D) false
A) list
B) element
C) true
D) false
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
In Android development, frame-based animations and image transitions are defined as ____.
A) instances
B) images
C) drawables
D) objects
A) instances
B) images
C) drawables
D) objects
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
When an 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
B) first
C) last
D) root
A) main
B) first
C) last
D) root
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Android uses an XML file-creator utility that supports ten different ____________________ types.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Creating a new Android XML file requires the resource type, a filename, and a(n) ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
The start( ) method launches the animation xml file displaying the ____________________ items.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
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 50 flashcards in this deck.
Unlock Deck
k this deck
45
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 50 flashcards in this deck.
Unlock Deck
k this deck
46
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 50 flashcards in this deck.
Unlock Deck
k this deck
47
The AnimationDrawable object can be accessed using the ____________________ method.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Buttons using a setOnClickListener await user ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
____________________ and Tween animation are two types of animation provided by Android.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
A new ____________________ project has an Application Name, a Package Name, and an Activity name.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck