I am trying to create a button where I can hide or show the status bar on my tablet.
I\'ve put in the onCreate
getWindow().addFlags(WindowManager.Lay
For Kotlin users
TO SHOW
activity?.window?.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
TO HIDE
activity?.window?.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)