我在Kitkat中实施本指南时遇到了问题。在棒棒糖一切正常: 如何使用DrawerLayout显示在ActionKar /工具栏上以及KitKat上的状态栏下?
但在奇巧工具栏不具有任何的顶部填充:
我可以https://github.com/jgilfelt/SystemBarTint库使用解决这个问题:
SystemBarTintManager.SystemBarConfig config = tintManager.getConfig();
mainView.setPadding(0, config.getPixelInsetTop(false), config.getPixelInsetRight(), config.getPixelInsetBottom());
但是我觉得我做错了什么。你有什么好的做法如何在KitKat上实现这种效果?
你可以提高通过添加代码或引用您的答案。 – dakab 2015-11-26 15:31:46