我正在尝试使用Vivo V11 pro设备在应用程序中隐藏状态栏。就像whatsapp在故事板上一样。
我尝试了传统的方法
getActivity()。getWindow()。addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
准确的结果就像Whatsapp如何在相机后隐藏状态栏:
As you can see, Status bar is fully hidden and Horizontal progress bar goes behind the camera
但是,在我的情况下,状态栏是隐藏的,但仍留有空格:
Here, status bar is not shown but blank space is coming.
我已经搜索了所有与状态栏隐藏有关的问题,但没有得到满意的答案。