Using new IMMERSIVE mode in android kitkat

后端 未结 6 694
说谎
说谎 2020-12-14 01:56

I want to make an activity to go into IMMERSIVE mode and hide top and buttom system bars as soon as it starts.

In developers site of android they say I should use

6条回答
  •  借酒劲吻你
    2020-12-14 02:38

    Answer has already been given but here is How to utilize Immersive mode.

    In your activity:

    just before setContentview().......

    call the method: toggleHideyBar();

    Follow documentation documentation from Developer android and copy this method in your Activity.

提交回复
热议问题