Set Android immersive full screen mode in manifest

后端 未结 1 1929
萌比男神i
萌比男神i 2021-01-18 08:20

In the new KitKat there is immersive full screen mode that can be used like this:

To provide your app with a layout that fills the entire screen, the

相关标签:
1条回答
  • 2021-01-18 08:36

    There is no way to declare immersive mode in the manifest or window flags.

    It's only available via the view-level SYSTEM_UI_FLAG_IMMERSIVE flags, which indicates that it is a request, not a mandate - and that it is a temporary mode.

    The system may choose to ignore the request or exit immersive mode at any time, your app should handle those cases.

    It's also worth pointing out that hiding the primary navigation on a mobile device is not something to be taken lightly. It's not appropriate for all apps, and should not be done without thought.

    0 讨论(0)
提交回复
热议问题