透明导航栏的棒棒糖应用程序? [英] Transparent Navigation Bar for Lollipop app?
本文介绍了透明导航栏的棒棒糖应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么增加的themes.xml改变导航栏更加透明?我找不到文档的任何地方。谢谢!
What do I add to themes.xml to change the navigation bar to be more transparent? I can't find documentation for it anywhere. Thanks!
推荐答案
在你的主题添加以下行:
In your theme add the following line:
<item name="android:windowTranslucentNavigation">true</item>
罗曼盖伊出版了一本很好的 示例应用程序 使用此API。也许这将有所帮助。 (您可能需要重构一些code,因为该项目采用的是Android大号开发preVIEW原文)。
Romain Guy has published a nice sample app that uses this API. Maybe it will help. (You might need to refactor some code since the project was originally written using the Android L developer preview).
这篇关于透明导航栏的棒棒糖应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文