Android Studio Full Screen + NoAction Bar Activity Java Code
While writing a Java Android application, we do not want some pages to be full screen and actionbar. We do this in android studio by editing themes. But we can use java codes to do this easily and quickly.
The first version of the application:
Android Studio Full Screen + NoAction Bar Activity Java Code
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Objects.requireNonNull(getSupportActionBar()).hide();