android - 透明导航软按键

标签 android android-4.4-kitkat android-5.0-lollipop

我试图找到 xml 主题参数来制作软导航按钮,例如在给定颜色/透明的 Nexus 5 中接受覆盖。到目前为止我找不到任何东西。

例子: enter image description here

最佳答案

为了在应用程序内部执行此操作,我将其用于 styles.xml

<item name="android:windowTranslucentNavigation">true</item> <item name="android:windowTranslucentStatus">true</item> <item name="android:fitsSystemWindows">true</item>

但是,您必须管理导航栏下的布局对象(如 FAB 按钮)。

不确定这是否是您想要的,请尝试一下。

干杯

关于android - 透明导航软按键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27290423/

相关文章:

android: 看不到日志输出

android - 如何删除Android SearchView 的剩余空间?

java - 在 Galaxy Note2 上使用 SurfaceView 和媒体记录器进行 Android 视频录制问题

java - 运行低于 Lollipop 的设备上的 CameraManager

android - fragment 进入过渡的问题

android - PolylineOptions .color() 不工作

android - 如何重新加载每次重新加载选项卡

android - 发送 APK 文件 android

android - 如果没有 Google Play 服务的帮助,我如何让 TLS 1.2 在 Android 4.4 中工作?

android - 使用自定义图标字体时如何修复 Android Lollipop 中的字体基线?