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?
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?
In custom drawable classes, which method should be overridden to draw content?
In custom drawable classes, which method should be overridden to draw content?
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
How is a ShapeDrawable created in Android?
How is a ShapeDrawable created in Android?
Signup and view all the answers
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?
Signup and view all the answers
Why is animation used in Android applications?
Why is animation used in Android applications?
Signup and view all the answers
Which animation system is considered the preferred method of animation in Android?
Which animation system is considered the preferred method of animation in Android?
Signup and view all the answers
What does the setBounds() method do in relation to ShapeDrawables?
What does the setBounds() method do in relation to ShapeDrawables?
Signup and view all the answers
Why is Property Animation considered a robust framework?
Why is Property Animation considered a robust framework?
Signup and view all the answers
When is using a View to draw an animation the best option?
When is using a View to draw an animation the best option?
Signup and view all the answers
Why is Canvas a better option than View for redrawing applications regularly?
Why is Canvas a better option than View for redrawing applications regularly?
Signup and view all the answers
What is the main difference between a View and a Drawable object?
What is the main difference between a View and a Drawable object?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
What does the getPadding(Rect) method of a Drawable provide?
What does the getPadding(Rect) method of a Drawable provide?
Signup and view all the answers