Kotlin

Kotlin is a functional language created by Jetbrains that can be used to boost Android development. Lambas, null safety, extension functions and a lot of breaking features make Android development simpler and easier. Start learning today! Get the book!Don't miss new posts

Extension functions in Kotlin: Extend the Android Framework (KAD 08)

Extension functions are a really cool feature that Kotlin provides, and that you'll find yourself using a lot when writing Android Apps. We have to admit that the Android Framework sometimes makes things a bit difficult, and in Java the only solution we have left is...

Custom Views in Android with Kotlin (KAD 06)

When we saw the article about classes, you may remember that in general only one constructor is used. This is a problem for creating custom views. The Android framework expects to have several constructors available based on where and how the view is being created (by...

Kotlin integrations with Android SDK (KAD 05)

Kotlin not only simplifies the code you create on this language, but also the Java code you use from Kotlin. How does this work? It simply uses some generic structures and give them a more "Kotlin" feel. In this article, you'll see some examples, and how it improves...

Kotlin Android Extensions: Say goodbye to findViewById (KAD 04)

You're probably tired of working with findViewById in your day-to-day life to recover Android views. Or maybe you gave up and started using the famous Butterknife library. Then you'll love Kotlin Android Extensions. Kotlin Android Extensions Kotlin Android Extensions...

Classes in Kotlin: More power with less effort (KAD 03)

Classes in Kotlin are as simple as possible so that you can express the maximum amount of logic with the less code possible. I'll show quickly how you can start writing Kotlin classes, and the differences with Java classes. 1. Declare the class...

Variables in Kotlin, differences with Java. var vs val (KAD 02)

In this second chapter we will see how variables work in Kotlin, what is val and var , and when to use one or the other. I wanted to start from here, because it will be useful to understand later how to create "fields" in our classes (we will see that they are not...

Create your first Android project using Kotlin (KAD 01)

Today I'm starting a set of 30 articles about Kotlin for Android Developers (KAD). In these articles I'll be talking about the most important parts of the language and how they apply to Android development. From the very beginning, so if you've heard about Kotlin but...

Kotlin Recipes for Android (II): RecyclerView and DiffUtil

As you may know, the Support Library 24 included a new really handy class called DiffUtil, which will let you get rid of the boring and error prone of detecting which cells changed and update them If you haven’t heard about it, you can take a look at this nice article...

Kotlin recipes for Android (I): OnGlobalLayoutListener

Today a mate asked me how he could do an OnGlobalLayoutListener properly without incurring in the need of too much boilerplate. This was a tricky question because of a couple of things, let's see it a little more deeply. What is OnGlobalLayoutListener for? This...

Kotlin awesome tricks for Android

I've been talking a lot about Kotlin in this blog, but now that Google is also talking about Kotlin, and that Kotlin 1.0 RC has been released, there's no doubt that Kotlin is much more than just an alternative for Android. Kotlin is here to stay, and I recommend you...

Kotlin for Android Developers

Kotlin for Android Developers

Start learning Kotlin today with this book by creating an Android App from ground up.

Get it Now!