ModelViewer3D
ModelViewer3D copied to clipboard
Hide status bar
It would be nice to hide status bar. But options menu should be moved somewhere.
val windowInsetsController = WindowCompat.getInsetsController(window, window.decorView) windowInsetsController.systemBarsBehavior = WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.containerView)) { v, insets ->
...
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) windowInsetsController.hide(WindowInsetsCompat.Type.statusBars())