Reputation: 42824
As Shown in the pic below
,
Upvotes: 1
Views: 2992
Reputation: 405
You can hide the Action Bar by using following style:
<style name="MyTheme" parent="android:Theme.Holo.Light">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
For Hiding the navigation bar use the following and refer this.
View decorView = getWindow().getDecorView();
// Hide both the navigation bar and the status bar.
// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
// a general rule, you should design your app to hide the status bar whenever you
// hide the navigation bar.
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
Upvotes: 0
Reputation: 2428
You can hide the navigation bar by doing the following:
View decorView = getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
To make content appear behind the navigation bar you need to use SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
. You may also need to use SYSTEM_UI_FLAG_LAYOUT_STABLE
to help your app maintain a stable layout.
You may instead want to use immersive Full-Screen Mode. Check out this link for more info.
Upvotes: 1