Programmers day Android app in Kotlin

In view of the fact that today we celebrate Programmer Day, I decided to write a simple app for this event in Android Platform using Kotlin.

I will skip basics of creating an Android Project in IntelliJ IDEA. For this purpose I refer you to official Getting started with Android and Kotlin.

Just remember to make sure that in build.gradle file you have same version as in the plugin. If it is not same you will receive error: “Some Kotlin libraries attached to this project have unsupported format.Please update the libraries or the plugin”.

Zrzut ekranu 2014-09-13 o 12.57.02Zrzut ekranu 2014-09-13 o 12.58.49

Here is a MainActivity:

and layout:

Hope you enjoy your day! 🙂

I attach a screenshot: