Toolbar

1.在activity_main.xml里的drawer layout与side drawer的layout中加入

android:fitsSystemWindows="true"

 

2.在 v21/styles.xml中加入一個有透明度的色码给 android:statusBarColor 这个状态列颜色设定属性。

<style name="AppTheme" parent="AppTheme.Base">
  ...
  <!--Status bar color-->
  <item name="android:statusBarColor">#88009688</item>
</style>

 

 

 

原文地址:http://blog.mosil.biz/2014/10/navigation-drawer-on-toolbar/#update20141029

posted @ 2015-03-22 21:46  W君  阅读(201)  评论(0编辑  收藏  举报