is it possible to hide the system bar

前端 未结 5 1666
情歌与酒
情歌与酒 2020-11-28 10:13

I created a launcher, to use it in an internal application. for some security reasons i would like to hide the system bar (the acces to the parameter an ordrer to the acces

5条回答
  •  一生所求
    2020-11-28 10:59

    Tablet that will be used are not rooted

    Then you can't hide it. You can however use SYSTEM_UI_FLAG_HIDE_NAVIGATION to hide it temporary, but it will get visible once the user touches the screen:

    There is a limitation: because navigation controls are so important, the least user interaction will cause them to reappear immediately. When this happens, both this flag and SYSTEM_UI_FLAG_FULLSCREEN will be cleared automatically, so that both elements reappear at the same time.

提交回复
热议问题