Mobile App Chapter 4

¡Supera tus tareas y exámenes ahora con Quizwiz!

Fragments can be executed independently of a parent Activity.

False. A Fragment executes in the context of a parent Activity.

To delay an action, we use a(n)______ (package android.os) object to execute a Runnable after a specified delay.

Handler

A(n)______ briefly displays a message to the user.

Toast

To access the app's assets folder's contents, a method should get the app's AssetMan- ager by calling method____________ (inherited indirectly from class ContextWrapper).

getAssets

Android supports______ animations which allow you to animate any property of any object.

property animations

Android Studio's______ is used to add material design icons to a project.

Asset Studio

Files in the assets folders are accessed via a(n)______ (package android.con- tent.res), which can provide a list of all of the file names in a specified subfolder of assets and can be used to access each asset.

AssetManager

We implement interface______ to handle the events that occur when the user touches a button on an AlertDialog.

DialogInterface.OnClickListener

The base class of all fragments is BaseFragment (package android.app).

False. The base class Fragment.

Use activities to create reusable components and make better use of the screen real estate in a tablet app.

False. Use Fragments to create reusable components and make better use of the screen real estate in a tablet app.

Android does not provide a logging mechanism for debugging purposes.

False. When exceptions occur, you can log them for debugging purposes with the built-in Log class's methods.

AnimationUtils static method loadAnimation loads an animation from an XML file that specifies the animation's options.

True

ImageView's adjustViewBounds property specifies whether or not the ImageView main- tains the aspect ratio of its Drawable.

True

Like an Activity, each Fragment has a life cycle.

True

You load color and String array resources from the colors.xml and strings.xml files into memory by using the Activity's Resources object.

True

By default, animations in an animation set are applied in parallel, but you can use the ______ attribute to specify the number of milliseconds into the future at which an animation should begin. This can be used to sequence the animations in a set.

android:startOffset.

A(n)______ is a collection of animations which make up a larger animation.

animation set

A(n)______ resource file defines a color resource that changes colors based on a View's state.

color state list

For the android:fromXDelta attribute, specifying the value -5%p indicates that the View should move to the______ by 5% of the parent's width (p indicates "percent").

left

When the user selects an item from a Menu or touches a menu item displayed on the app bar, Activity method__________________ is called to respond to the selection.

onCreateOptionsMenu

You can specify the number of times an animation should repeat with Animation method _______ and perform the animation by calling View method startAnimation (with the Animation as an argument) on the ImageView.

setRepeatCount

A(n)______ animation moves a View within its parent.

translate


Conjuntos de estudio relacionados

sensation perception learningCurve 6b

View Set

Small Intestine VS Large Intestine

View Set

CH#4: Life Insurance Policy Provisions, Options and Riders Q&A

View Set

American Government, Ch 12 The President

View Set

Pharmacology: Chapter 1: Chapter Review

View Set

Pancreatic secretions (Your boy Chou Chou)

View Set

FIN 320 Final Exam Multiple Choice

View Set

The Increase of Socialism in the American Economy

View Set