Status bar series: How to hide the status bar in full screen?

  • When the user clicks on the full screen to play a video, it is generally required to play the video in a horizontal screen and full screen. At this time, you need to hide the status bar.
  • Regardless of hiding the ActionBar, hide the status bar, the easiest way:
 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

Guess you like

Origin blog.csdn.net/zhangjin1120/article/details/114598766