Recall & Review
beginner
What is the purpose of customizing the Material Theme in Android?
Customizing the Material Theme lets you change colors, typography, and shapes to match your app's unique style and branding.
Click to reveal answer
beginner
Which XML file is commonly used to define custom Material Theme colors in Android?
The colors.xml file inside the
res/values folder is used to define custom colors for the Material Theme.Click to reveal answer
intermediate
How do you apply a custom Material Theme to your Android app?
You create a custom style in
themes.xml that inherits from a Material Theme, then set it as the app theme in AndroidManifest.xml.Click to reveal answer
intermediate
What is the role of
Theme.Material3.DayNight in Material Theme customization?It provides a base theme that supports both light and dark modes automatically, making it easier to customize for different appearances.
Click to reveal answer
intermediate
Name two ways to customize typography in a Material Theme.
You can customize typography by defining a
typography style in themes.xml or by creating a custom TextAppearance style.Click to reveal answer
Which file do you edit to change the primary color in a Material Theme?
✗ Incorrect
The primary color is defined in colors.xml as a color resource used by the theme.
What is the base theme to inherit from for Material 3 customization?
✗ Incorrect
Theme.Material3.DayNight is the recommended base for Material 3 with light and dark mode support.
How do you apply your custom theme to the entire app?
✗ Incorrect
The app theme is set in AndroidManifest.xml inside the tag using android:theme attribute.
Which XML file defines the shape appearance for Material Theme components?
✗ Incorrect
Shape appearances are defined inside themes.xml as part of the Material Theme customization.
What benefit does using Theme.Material3.DayNight provide?
✗ Incorrect
It automatically switches between light and dark modes based on system settings.
Explain how to customize the primary and secondary colors in a Material Theme for an Android app.
Think about where colors are defined and how the theme uses them.
You got /5 concepts.
Describe the steps to enable dark mode support using Material Theme customization.
Consider the base theme and how colors adapt to dark mode.
You got /4 concepts.