Podcast
Questions and Answers
What is a compound drawable that selects one of a set of drawables based on its state?
What is a compound drawable that selects one of a set of drawables based on its state?
- Layers
- Levels
- Scale
- States (correct)
How can custom drawable classes be used in XML by specifying the fully-qualified class name?
How can custom drawable classes be used in XML by specifying the fully-qualified class name?
- Using 'image' tag
- Using 'custom-drawable' tag
- Using 'custom' tag
- Using 'drawable' tag (correct)
In custom drawable classes, which method should be overridden to draw content?
In custom drawable classes, which method should be overridden to draw content?
- onDraw() (correct)
- drawContent()
- updateDrawable()
- onCreate()
Which element naming convention is required when using the fully-qualified class name as the XML element name?
Which element naming convention is required when using the fully-qualified class name as the XML element name?
What allows the Drawable class to be extended and used at runtime in place of framework-provided drawable classes?
What allows the Drawable class to be extended and used at runtime in place of framework-provided drawable classes?
What is the minimum requirement for custom drawable classes to be accessible within an application package?
What is the minimum requirement for custom drawable classes to be accessible within an application package?
How is a ShapeDrawable created in Android?
How is a ShapeDrawable created in Android?
What method is used to access the Paint object associated with a ShapeDrawable?
What method is used to access the Paint object associated with a ShapeDrawable?
Why is animation used in Android applications?
Why is animation used in Android applications?
Which animation system is considered the preferred method of animation in Android?
Which animation system is considered the preferred method of animation in Android?
What does the setBounds() method do in relation to ShapeDrawables?
What does the setBounds() method do in relation to ShapeDrawables?
Why is Property Animation considered a robust framework?
Why is Property Animation considered a robust framework?
When is using a View to draw an animation the best option?
When is using a View to draw an animation the best option?
Why is Canvas a better option than View for redrawing applications regularly?
Why is Canvas a better option than View for redrawing applications regularly?
What is the main difference between a View and a Drawable object?
What is the main difference between a View and a Drawable object?
Why should the setBounds(Rect) method be called when working with a Drawable?
Why should the setBounds(Rect) method be called when working with a Drawable?
What information can be obtained using the getIntrinsicHeight() and getIntrinsicWidth() methods of a Drawable?
What information can be obtained using the getIntrinsicHeight() and getIntrinsicWidth() methods of a Drawable?
What does the getPadding(Rect) method of a Drawable provide?
What does the getPadding(Rect) method of a Drawable provide?