Development

Function references in Kotlin

Function references in Kotlin: use functions as lambdas everywhere

Function references are another of those great improvements that we get with Kotlin, which are kind of exotic when we come from Java. You already know that Kotlin supports functions as a type, what means that you can save a function in a variable, use it as another function argument, or even make that a …

Function references in Kotlin: use functions as lambdas everywhere Read More »

Why Kotlin for Android online course is different from any other

You may probably know that this days I’m publishing my first online course in English, Kotlin for Android Developers, based on all the knowledge I’ve gotten from writing my book and the live workshop I teach here in Spain. In the course, you will learn Kotlin from scratch applied to Android development, in a very …

Why Kotlin for Android online course is different from any other Read More »

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 listener is available for any view’s ViewTreeObserver and it’s quite often …

Kotlin recipes for Android (I): OnGlobalLayoutListener Read More »

Use Voice Search to integrate with Google Now

One of the awesome things about Android is the ability we have to integrate our apps into the ecosystem in many different ways. Apps can talk among each others, and this fact gives us an impressive flexibility to create unique experiences. Integrations with Google are a clear example. We have a bunch of different features that can …

Use Voice Search to integrate with Google Now Read More »