8

Is there a way to hide the Navigation bar (back, home settings etc..) in Design View? --- essentially showing my app full screen (except for the pull down action bar)

Mike6679
  • 5,547
  • 19
  • 63
  • 108
  • Possible duplicate of [How To Show and hide ActionBar with AppCompat v.7](https://stackoverflow.com/questions/30284627/how-to-show-and-hide-actionbar-with-appcompat-v-7) –  Dec 11 '17 at 12:22
  • What exactly did you want? – RKRK Apr 02 '18 at 13:14

1 Answers1

1

is to late but this answer maybe can help someone add this to your activity

    @Override
public void onWindowFocusChanged(boolean hasFocus) {
    super.onWindowFocusChanged(hasFocus);
    if (hasFocus) {
        getWindow().getDecorView().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_IMMERSIVE_STICKY);
    }
}
AflamZone
  • 81
  • 2
  • 3