Search code examples
androidlibgdx

Fullscreen on Nexus devices using libgdx


Does anyone know how to go fullscreen using libgdx, where the virtual home key buttons on devices such as Nexus are also not visible?


Solution

  • In case anyone finds this like I did while looking for a simple fix you can use

    config.useImmersiveMode = true;
    

    on the AndroidApplicationConfiguration object on 4.4 and up to hide the soft keys in addition to the statusbar (which is hidden by default).

    UPDATE: The line belongs in android/src/YOUR/PACKAGE/PATH/android/AndroidLauncher.java