Image for post
Image for post

Design Patterns

There was one book, which made me understand a big problem with the Android View System. The book is called Design Patterns and is written by the infamous gang of four.

In the initial chapters, the authors take you along the development process of a graphical editor based on a view system. While following the process I became fascinated by how relevant this old book (1995) still seemed and how much I could actually apply to my coding style. There was one pattern that I found especially fitting for creating a view system, the Composite pattern. And it got me…


Image for post
Image for post

At my current project we are in the middle of implementing filters for a shopping app. We have all kinds of filters: a slider for the price, checkboxes for the gender, etc. Basically the same stuff most shopping apps have these days. The challenge here for us was, that we wanted to show different type of filters in a list and be flexible about adding or removing a filter.

While planning the feature I remembered an article by Hannes Dorfmann. He wrote about something he called Adapter Delegates. It seemed like the perfect match for our case. …


Image for post
Image for post

As promised in my introduction post, I will write now about something directly related to Android development - Viewmodels. With my current project, I finally got started with Android Viewmodels and the whole architecture components family. Despite all the critics I heard before, I really like to work with them so far.

As an Android developer, I was especially pleased when I saw that it was even possible to pass dependencies via a constructor. …


Image for post
Image for post

I was actually not too excited about it when I first heard about the multibindings feature from Dagger. But as it now gave me the motivation to write my first blog post ever, you can already guess that I changed my mind about it.

Let me first give you an overview what multibinding is. With Dagger you usually define how to provide single objects. But if you want to provide a whole collection of objects, multibinding comes into play. For example if you have a bunch of shapes.

You can inject all those shapes together in one Set via…

Adriano Celentano

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