How to Hide System Navigation Bar in Tablets?

后端 未结 9 1698
一整个雨季
一整个雨季 2020-11-27 04:13

At my Tablet, it has following bar to control back, home etc. (I don\'t know the correct name, status bar? control bar? Action bar? or other)

In program, it use foll

9条回答
  •  广开言路
    2020-11-27 04:57

    In Tablets running Android 4+, it is not possible to hide the System / Navigation Bar.

    From documentation (Controls for system UI visibility section) :

    The SYSTEM_UI_FLAG_HIDE_NAVIGATION is a new flag that requests the navigation bar hide completely. Be aware that this works only for the navigation bar used by some handsets (it does not hide the system bar on tablets).

    However, you could try to dim the system bar as done sometimes during gaming and video playback.

    The SYSTEM_UI_FLAG_LOW_PROFILE flag replaces the STATUS_BAR_HIDDEN flag. When set, this flag enables “low profile" mode for the system bar or navigation bar. Navigation buttons dim and other elements in the system bar also hide. Enabling this is useful for creating more immersive games without distraction for the system navigation buttons.

提交回复
热议问题