Photo by PAULA BARRECA BARNES on Unsplash

Last time, we’ve seen the most basic things one should know about Data Binding: what Data Binding actually means and how to solve common tasks the Data Binding way.

In this second part, I’ll show you some — still common — examples on what more you can get out of Data Binding. But this time, we’ll dive a bit deeper, while still keeping up with giving a lot of practical examples and evolving our code piece by piece. It’s all about…

Two-way Data Binding

First of all, what is two-way Data Binding? As you may have guessed: it’s about not just getting data…

Photo by Katie Smith on Unsplash

Data Binding offers a broad range of ways to strip UI actions from your Fragment’s code. In this article series I’ll give you practical examples on using Data Binding in a variety of scenarios.

Although Google’s documentation is a good reference for working with Data Binding, difficulties will pop up when working with it. This cookbook shall help you overcome them easily!

I’ll start with the most basic topics and then raise the bar — step by step. This first article will cover the most basic aspects whereas the the next articles will dive deeper.

Data Binding vs. View Binding

Before diving into Data Binding

It’s up to you to choose… [image taken by: Takafumi Yamashita]

You already know what dependency injection is from other platforms and are looking for a kick start with DI on Android? — Then you’re in the right place!

As Google not only recommends using Dagger 2 for Android dependency injection, but even actively pushes new features, we will have a look at Dagger 2 in this story using Kotlin.

As the title says, we will work with examples. I will focus on a comprehensible approach. Especially I’ll not only show you code in isolated GitHub Gists, but also inside a running application on GitHub.

Let’s define our goals for now:

  1. equip an existing minimal app with…


Before writing articles here on, I decided that I should introduce myself 😊 Well…

I’m a software developer from Bonn, Germany. I’m working for ip.labs GmbH, part of the FUJIFILM group. But how did I get there?

Since my early ages I was keen on computers and coding. Then during school and my studies in the field of mathematics at the University of Siegen, I started implementing custom software for some local companies to keep things going. Yes, sounds like an IT nerd…

After finishing my diploma I started my professional career with developing native applications for Windows using…

Björn Kopiske

Lead Software Developer @ ip.labs GmbH,, @the_ceedee

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store