0

I want to make the navigation icons (bar) dim, because they are to bright and distract the user from the application content. At the same time I don't want to hide the navigation bar completely. The description of View.SYSTEM_UI_FLAG_LOW_PROFILE perfectly matches my needs:

This is for use in games, book readers, video players, or any other "immersive" application where the usual system chrome is deemed too distracting.

In low profile mode, the status bar and/or navigation icons may dim.

However, the View.setSystemUiVisibility(int) API is deprecated in favor of a new WindowInsets one. Still I can't figure out how to achieve the described behavior with the new WindowInsets API?

Thank you.


Note: It seems that the WindowInsetsAnimationControllerCompat provides a control over the insets' alpha (transparency). Unfortunately, it only works on API >= 30, whereas the View.SYSTEM_UI_FLAG_LOW_PROFILE way works for API >= 14.

frumle
  • 593
  • 5
  • 15

0 Answers0