You can derive from Material Theme to create your own theme, overriding some or all color
attributes. For example, you can create a theme that derives from Theme.Material.Light, but overrides the app bar color to match the color of your brand. You can also style individual
views; for example, you can create a style for CardView that has more rounded corners and
uses a darker background color.
You can use a single theme for an entire app, or you can use different themes for different
screens (activities) in an app. In the above screenshots, for example, a single app uses a
different theme for each activity to demonstrate the built-in color schemes. Radio buttons switch
the app to different activities, and, as a result, display different themes.
Because Material Theme is supported only on Android 5.0, you cannot use it (or a custom
theme derived from Material Theme) to theme your app for running on earlier versions of
Android. However, you can configure your app to use Material Theme on Android 5.0 devices
and gracefully fall back to an earlier theme when it runs on older versions of Android (see the
Compatibility section of this article for details).