How do I make an activity full screen? I mean without the notification bar. Any ideas?
AndroidManifest.xml
For hide ActionBar / StatusBar
style.xml
To hide the system navigation bar
public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
setContentView(R.layout.activity_main)
...
}
}
For hide ActionBar / StatusBar
style.xml
To hide the system navigation bar
Similar like Theme.AppCompat.Light.DarkActionBar
.
Demo