Mobile Apps Chapter 5

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

T/F Fragments can be executed independently of a parent Activity.

False. Fragments must be embedded in activities, and they cannot run independently of activities.

Files in the assets folders are accessed via a(n) _____________ (package android.content.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

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

False. The base class of all fragments is Fragment. ?

T/F 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.

T/F 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.

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

Handler

T/F Like an Activity, each Fragment has a life cycle.

True

T/F We use AnimationUtils static method loadAnimation to load an animation from an XML file that specifies the animation's options.

True

T/F ImageView's Adjust View Bounds property specifies whether or not the ImageView maintains the aspect ratio of its Drawable.

True.

T/F 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.

We use the _____________ attribute of the application element to apply a theme to the application's GUI.

android:theme

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

animation set

To access the app's assets folder's contents, a method should get the app's Asset Manager by calling method _____________ (inherited directly from class ContextWrapper)

getAssets

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 (indicated by the p).

left

When the user selects an item from a Menu, Activity method _____________ is called to respond to the selection.

onOptionsItemSelected

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

property

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


संबंधित स्टडी सेट्स

Managerial Accounting Chapter 2 Assignment

View Set

Discovering the Internet Chapter 1 (Into the Internet) Key Terms

View Set

AP Classroom: Unit 3 Progress Check - AP Chemistry

View Set

Test: A Revolution and Two World Wars

View Set

MATH-164 - Chapter 1 - 4 Review - Exam 1

View Set

Pharmacy Practice 7e CH2 Exam Questions

View Set

acronyms and abbreviations business spanish

View Set