Created
November 2, 2019 11:17
Android Studio - Kotlin
This file contains hidden or 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
package com.dm.myapplication | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
class MainActivity : AppCompatActivity() { //funzione principale | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
//qui è contenuto il codice principale | |
myFunction() | |
} | |
//funzione creata al di fuori della funzione onCreate | |
private fun myFunction() { | |
//inserire qui il proprio codice della funzione | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment