How to completely exit from Immersive full screen mode?

前端 未结 2 1661
面向向阳花
面向向阳花 2021-02-12 20:27

I would like to implement a button to enable/disable the immersive full screen mode. I\'m using those methods but the showSystemUI only shows quickly and hide again...

H

2条回答
  •  别那么骄傲
    2021-02-12 21:16

    Calling setSystemUiVisibility() with View.SYSTEM_UI_FLAG_VISIBLE clears all flags:

    getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
    

提交回复
热议问题