Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/204.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将windowDrawsSystemBarBackgrounds设置为true时,标记\u布局\u无\u限制,导致我的导航栏在Android Emulator中变为黑色(_Android_Statusbar_Android Navigation Bar - Fatal编程技术网

将windowDrawsSystemBarBackgrounds设置为true时,标记\u布局\u无\u限制,导致我的导航栏在Android Emulator中变为黑色(

将windowDrawsSystemBarBackgrounds设置为true时,标记\u布局\u无\u限制,导致我的导航栏在Android Emulator中变为黑色(,android,statusbar,android-navigation-bar,Android,Statusbar,Android Navigation Bar,我的要求是使状态栏完全透明,没有任何覆盖和导航栏为白色。为此,我使用了FLAG\u transparcent\u status和fitsystemwindows=true,但在某些设备上状态栏上有一个覆盖,因此我应用了FLAG\u LAYOUT\u NO\u LIMITS标志,使我的状态栏和导航栏透明 因为,我不希望我的导航栏是透明的,所以我使用windowdrawsystembarbackgrounds=true。现在,Android Emulator上的导航栏变成黑色(像素3XL,API28

我的要求是使状态栏完全透明,没有任何覆盖和导航栏为白色。为此,我使用了FLAG\u transparcent\u status和fitsystemwindows=true,但在某些设备上状态栏上有一个覆盖,因此我应用了FLAG\u LAYOUT\u NO\u LIMITS标志,使我的状态栏和导航栏透明

因为,我不希望我的导航栏是透明的,所以我使用windowdrawsystembarbackgrounds=true。现在,Android Emulator上的导航栏变成黑色(像素3XL,API28,PIE 9.0)。对于这个特定的模拟器,它的颜色现在没有改变。虽然它显示白色导航,这是我在Redmi和Realme手机中的要求。但在Android emulator(Pixel 3XL、API28、PIE 9.0)中,导航栏仍然是黑色的

我也参考了这个库来满足我的需求,但这个库项目的行为与我目前的情况相同(即在真实设备上工作,但在上面提到的emulator中,它显示黑色的导航栏)