4
我目前正在处理某些事情,我希望状态和导航栏是透明的,并且内容在它们后面。目前,我有条设置为@android:彩色/在styles.xml透明,我能得到这个代码的状态栏后面的内容:显示导航栏后面的内容
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
);
但是我仍然在努力得到它的背后导航栏。任何帮助赞赏。
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
希望这可以帮助:
感谢, 乔希