Examples using Kotlin in Android
-
Add the kotlin dependencies to your Gradle project and module. https://kotlinlang.org/docs/reference/using-gradle.html
-
Convert a simple class to a kotlin class with the
Convert Java File to Kotlin File
function of Intellij/Android Studio. You can easily access this feature via the quick searchcmd + shift + a
or from the Code drop down menu. https://kotlinlang.org/docs/tutorials/kotlin-android.html