hide System UI - Android android.view

Android examples for android.view:View

Description

hide System UI

Demo Code

import android.annotation.SuppressLint;
import android.view.View;

public class Main{

    @SuppressLint("InlinedApi")
    public static void hideSystemUI(View decorView) {
        decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                | View.SYSTEM_UI_FLAG_FULLSCREEN
                | View.SYSTEM_UI_FLAG_LOW_PROFILE
                | View.SYSTEM_UI_FLAG_IMMERSIVE);
    }/*from   ww  w.  j a va  2 s  .co  m*/

}

Related Tutorials