在Android 5.0以上,AppCompat toolbar控件会自带阴影效果,有些时候我们想要去掉阴影效果,这时候我们只需要在AppBarLayout中添加app:elevation=”0dp”即可去掉阴影效果。