Posts in Category: android

Setting up Scala on Android

Scala can be used to build Android applications, as an alternative to Java or Kotlin. Unlike them, setting up an Android project in Scala with SBT is not straightforward, and can give us some headaches to get it right. To show how this can be done, we are going to create new project template using the Android SDK Plugin for SBT.


Required tools

In order to develop Android apps in Scala, you need a minimum set of tools:

Read More

MVVM with Data Binding on Android

Now that Google has -finally- started working on a Data Binding engine, it’s time for me to start changing the way I use the Presentation Model pattern.

Why use Presentation Model?

It’s been talked a lot about this pattern, so I’m not going to re-explain the wheel. You can find useful references hereherehere and here. Very briefly, the main motivations to use this pattern are:

  • Moves the presentation logic into specific components.

    Read More