解决方案:

在Activity onCreate后,记得不要添加下面这句

getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);//透明导航栏,就是下面三个虚拟按钮

需要透明导航栏就加

getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

android:fitsSystemWindows="true"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-12-16
猜你喜欢
  • 2021-04-30
  • 2022-12-23
  • 2021-11-24
  • 2021-07-10
  • 2021-04-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案