I
I
ivan gi2015-05-15 13:35:26
Android
ivan gi, 2015-05-15 13:35:26

How to remove the navigation bar in an android app?

How to remove the navigation bar in an android app?
In the application, you need to remove the navigation bar so that it would not be visible. The similarity of the fullscreen mode or it.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Sklyarov, 2015-05-18
@coder1cv8

I ended up with this option:

if (Build.VERSION.SDK_INT < 19) {
  View v = this.getWindow().getDecorView();
  v.setSystemUiVisibility(View.GONE);
} else {
  View decorView = getWindow().getDecorView();
  int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
      | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
  decorView.setSystemUiVisibility(uiOptions);
}

A
abukhvalov, 2015-05-15
@abukhvalov

Actionbar?
https://developer.android.com/training/system-ui/s...

O
one pavel, 2015-05-15
@onepavel

RTFM developer.android.com/guide/topics/ui/actionbar.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question