Skip to content

Instantly share code, notes, and snippets.

@davidelp68
Last active August 19, 2019 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidelp68/d37c8c163e49530d93d62160e9de96e4 to your computer and use it in GitHub Desktop.
Save davidelp68/d37c8c163e49530d93d62160e9de96e4 to your computer and use it in GitHub Desktop.
Andorid Studio - configChanges nel file MainActivity.kt
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