Kotlin

MVP for Android: how to organize the presentation layer

[et_pb_section admin_label=”section”] [et_pb_row admin_label=”row”] [et_pb_column type=”4_4″][et_pb_text admin_label=”Text”]MVP (Model View Presenter) pattern is a derivative from the well known MVC (Model View Controller), and one of the most popular patterns to organize the presentation layer in Android Applications. This article was first published in April 2014, and been the most popular since then. So I’ve decided …

MVP for Android: how to organize the presentation layer Read More »

Listeners with several functions in Kotlin. How to make them shine?

One question I get often is how to simplify the interaction with listeners that have several functions on Kotlin. For listeners (or any interfaces) with a single function is simple: it automatically lets you replace it by a lambda. But that’s not the case for listeners with several functions. So in this article I want …

Listeners with several functions in Kotlin. How to make them shine? Read More »

Kotlin DSL for Gradle

Kotlin DSL to write Gradle scripts on Android: Step by step walkthrough

There’s been quite some months already since Gradle announced that they were working on supporting Kotlin to write Gradle Scripts, by using a version of the language that has been recently revamped to Kotlin DSL. At the beginning things where quite complicated, but nowadays, with latest versions of Kotlin DSL (at the time of writing …

Kotlin DSL to write Gradle scripts on Android: Step by step walkthrough 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 Android Extensions

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

Warning! Kotlin Android Extensions are deprecated, you should start using View Binding. If you’ve been developing Android Apps for some time, you’re probably already tired of working with findViewById in your day-to-day life to recover views. Or maybe you gave up and started using the famous Butterknife library. If that’s your case, then you’ll love Kotlin Android …

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

reasons-kotlin-android

12 reasons why you should start using Kotlin for Android today (KAD 30)

Even now that Kotlin is an officially supported language to write Android Apps, you may still feel that there are not enough reasons for a change. Java has proved to be working during all these years, so why should you change? Here are my reasons why I think that, far from being a risky bet, …

12 reasons why you should start using Kotlin for Android today (KAD 30) Read More »