caipivara
9/1/2016 - 8:13 PM

Android - set full screen mode

Android - set full screen mode

/**
 * Call it before set Content view
 */
private fun setFullScreenMode() {
  requestWindowFeature(Window.FEATURE_NO_TITLE)
  window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
      WindowManager.LayoutParams.FLAG_FULLSCREEN)
}