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
Calling setSystemUiVisibility() with View.SYSTEM_UI_FLAG_VISIBLE clears all flags:
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);