0
0
Android Kotlinmobile~5 mins

Material Theme customization in Android Kotlin - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Astrings.xml
Bcolors.xml
CAndroidManifest.xml
Dbuild.gradle
What is the base theme to inherit from for Material 3 customization?
ATheme.Material.Light
BTheme.AppCompat.Light
CTheme.Holo.Light
DTheme.Material3.DayNight
How do you apply your custom theme to the entire app?
ASet it in the activity's onCreate method
BAdd it to colors.xml
CSet it in AndroidManifest.xml under application tag
DCall setTheme() in every fragment
Which XML file defines the shape appearance for Material Theme components?
Athemes.xml
Bdimens.xml
Cshapes.xml
Dstyles.xml
What benefit does using Theme.Material3.DayNight provide?
ASupports both light and dark modes automatically
BSupports only light mode
CSupports only dark mode
DDisables theme customization
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.