Skip to content

Instantly share code, notes, and snippets.

@davidelp68
davidelp68 / IntroHtml.html
Created August 18, 2019 15:37
HTML - Introduzione al linguaggio HTML
<!DOCTYPE html>
<html>
<head>
<title>Titolo pagina</title>
</head>
<body>
<!-- Questo è un commento! -->
</body>
@davidelp68
davidelp68 / tag_head.html
Last active August 19, 2019 08:03
HTML - tag head
<head>
<title>Titolo pagina</title>
</head>
@davidelp68
davidelp68 / tag_open.html
Created August 19, 2019 08:08
HTML - Tag aperto
<html>
@davidelp68
davidelp68 / tag_close.html
Created August 19, 2019 08:09
HTML - Tag chiuso
</html>
@davidelp68
davidelp68 / tag_body.html
Created August 19, 2019 08:23
HTML - tag body
<body>
<!-- Questo è un commento! -->
</body>
@davidelp68
davidelp68 / commento.html
Created August 19, 2019 08:26
HTML - commento
<!--Questo è un commento-->
@davidelp68
davidelp68 / round_ico.xml
Created August 19, 2019 08:52
Android Studio - Icona rotonda nel file AndroidManifest.xml
android:roundIcon="@mipmap/ic_launcher_round"
@davidelp68
davidelp68 / square_ico.xml
Last active August 19, 2019 08:52
Android Studio - Icona rotonda nel file AndroidManifest.xml
android:icon="@mipmap/ic_launcher"
@davidelp68
davidelp68 / onCreate_screeno.kt
Last active August 19, 2019 08:53
Andorid Studio - screenOrientation() in onCreate nel file MainActivity.kt
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val toolbar: Toolbar = findViewById(R.id.toolbar)
setSupportActionBar(toolbar)
screenOrientation() //richiamo funzione che esegue il full screen
//in modalità landscape e schermo normale in modalità portait
}
@davidelp68
davidelp68 / ConfigurationChange.kt
Last active August 19, 2019 08:53
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
}