Last active
August 19, 2019 08:53
-
-
Save davidelp68/d37c8c163e49530d93d62160e9de96e4 to your computer and use it in GitHub Desktop.
Andorid Studio - configChanges nel file MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onConfigurationChanged(newConfig: Configuration?) { | |
super.onConfigurationChanged(newConfig) | |
//inserire il codice da eseguire quando si cambia configurazione | |
//ad esempio quando si ruota il dispositivo | |
screenOrientation() //richiamo funzione che esegue il full screen | |
//in modalità landscape e schermo normale in modalità portait | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment