首先来看看如何使用Material Design的主题。
Material Design现在有三种默认的主题可以设置,显示效果如下图所示。
@android:style/Theme.Material
@android:style/Theme.Material.Light
@android:style/Theme.Material.Light.DarkActionBar
同时,Android 5.X提出了Color Palette的概念,如图所示,让开发者可以自己设定系统区域的颜色,使整个App的颜色和系统的颜色风格保持统一。 
通过如下代码,可以通过使用自定义Style的方式来创建自己的Color Palette颜色主题,从而实现不同的颜色风格,显示效果如下图所示。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.AppCompat">
<!-- Customize your theme here. -->
<item name="colorPrimary">#bebebe</item>
<item name="colorPrimaryDark">#ff5aebff</item>
<item name="android:navigationBarColor">#ffff4130</item>
</style>
</resources>
