kri*_*711 6 android android-actionbar android-4.4-kitkat
我正在努力达到这里显示的效果:尼克和男孩们http://www.youtube.com/watch?v=6QHkv-bSlds&t=15m48s.我可以让操作栏重叠,但无法弄清楚如何将其扩展到状态栏.我还想知道他们如何管理导航栏后面的透明黑色背景(但这并不是那么重要).
任何帮助/建议将不胜感激,因为我目前不知道如何做到这一点(我开始担心它可能只是一个图像,而不是一个实际的实现).
编辑:我知道如何使酒吧完全透明(这是简单的部分)!我不知道如何扩展操作栏背景以显示在现在的transluscent状态栏后面
Tan*_*ien 13
我有同样的问题,发现这个库:https://github.com/jgilfelt/SystemBarTint
看看第300行:https: //github.com/jgilfelt/SystemBarTint/blob/master/library/src/com/readystatesoftware/systembartint/SystemBarTintManager.java
setupStatusBarView()为窗口的装饰添加视图.这允许您稍后为此视图设置颜色/可绘制.
如果使用SystemBarTint库,以下将允许您将状态栏强制为指定的颜色,然后您可以将其与操作栏的背景匹配:
SystemBarTintManager tintManager = new SystemBarTintManager(this);
tintManager.setStatusBarTintEnabled(true);
tintManager.setStatusBarTintColor(Color.parseColor("#DD000000"));
Run Code Online (Sandbox Code Playgroud)
在这种情况下,您可以将操作栏的背景设置为:#DD000000
| 归档时间: |
|
| 查看次数: |
13727 次 |
| 最近记录: |