int newUiOptions = 0;
if (Build.VERSION.SDK_INT >= 14)
newUiOptions ^= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
if (Build.VERSION.SDK_INT >= 16)
newUiOptions ^= View.SYSTEM_UI_FLAG_FULLSCREEN;
if (Build.VERSION.SDK_INT >= 18)
newUiOptions ^= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
getWindow().getDecorView().setSystemUiVisibility(newUiOptions);
Navigation虚拟按键的隐藏
最新推荐文章于 2021-05-27 10:35:20 发布