代码之家  ›  专栏  ›  技术社区  ›  alfredopacino

如何使概述按钮透明

  •  0
  • alfredopacino  · 技术社区  · 6 年前

    我注意到许多应用程序使概述按钮自动透明。 有一种本地响应方式可以实现这一点(在设备中实现这一点)? 我说的是那些(本例中是三星): enter image description here

    1 回复  |  直到 6 年前
        1
  •  0
  •   Ziyo    6 年前

    原始来源: https://medium.com/@elliothesp/detecting-android-soft-navigation-keys-in-react-native-30163abd7113

    为了使系统导航透明,必须将此添加到 android/app/src/main/res/values/styles.xml :

    <!-- Customize your theme here. -->
    <item name="android:navigationBarColor">
      @android:color/transparent
    </item>
    <item name="android:windowTranslucentNavigation">
      true
    </item>