Building a UI with Kotlin and Anko

Since the beginning of Android development working with UI has been an XML thing. Though theoretically, UI could be programmed using Java, it has not been of much use. Not long ago, JetBrains introduced Kotlin, a modern language targeting the JVM, which could serve this purpose for Android.

Jetbrains announced Anko as a faster and easier style of development in Android. Kotlin offers the Anko library as a DSL(Domain Specific Language) to design an Android screen. A quick example:

Following is a plain Android UI consisting of an imageView and a Button.

Continue reading %Building a UI with Kotlin and Anko%


Source: Sitepoint