1

1 Base Activity Code.

 window.setFlags(
            WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
            WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
        )
 window.decorView.systemUiVisibility = (SYSTEM_UI_FLAG_HIDE_NAVIGATION
                or SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                or SYSTEM_UI_FLAG_LAYOUT_STABLE
                or SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                or SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)
  • Hide navigation bar and Transparent status bar is working fine
  • Full screen successfully but here scroll is not working please help.
Kaushik
  • 21
  • 2
  • +1, also not solved here https://stackoverflow.com/questions/33347297/can-i-set-flag-layout-no-limits-only-for-status-bar#comment111738084_52092975 – mikep Mar 07 '21 at 21:23
  • Finally I have found 3 lines code solution to have just status bar transparent and scrolling working. To have both status bar and navigation bar transparent + scrolling working solution takes more lines. I will publish it soon here. – mikep Mar 09 '21 at 01:22

0 Answers0