Writing a maintainable custom view in Android

If you are an Android developer at some point you will write a custom view. It is easy to implement it, but there are a couple of things you have to be careful about. This blog post will show you a few tips on how to write a maintainable custom view. As a result, future you will be happy and anyone who takes over your project will hate you a little less.

Continue reading…

Converting time units ilustration

Stop converting time units the wrong way

Java programmers use many different approaches when converting time units. Some of those approaches are good, but most of them are just wrong and error prone.

Continue reading…

5 Android Studio plugins every Android developer should use

Google introduced Android Studio more than 2 years ago. Since then it became the main IDE for Android development. There are many plugins for it these days and here is a list of 5 plugins I could not live without.

Continue reading…

Building applications for Android Wear

In the last 10 months with my Moto 360, a lot of people asked me tons of questions about smartwatches and Android wear. These questions are divided into two categories. How useful smartwatches are, and what apps can you build for them.

Continue reading…

Generate Java code

When you are a programmer you spend most of your time writing code. But, at some point, you need to write a piece of code which will generate another code. In Java, you can do it with JavaPoet, a library for generating Java source files.

Continue reading…

Android – How to write Batman like xml layout

When people talk about Android performance they generally talk about writing a cleaner and faster Java code, while completely ignoring the layout files. Slow layout rendering can have a huge impact on your application’s performance. Layout files with unnecessary views are hard to read and they can slow your application down. In this blog post I will share 5 tips which can help you write efficient and clean xml layout.

Continue reading…

Moto 360 – What am I using it for?

It has been 6 months since I bought my Moto 360 and when someone sees it for the first time the question is always the same: “What are you using it for?”. So, I decided to write this blog post, which will hopefully answer this question and give you an insight on how I use it.

Continue reading…

Android – NestedScrollView

Adding a ScrollView inside ScrollView can be difficult. Most of the times it won’t end well. You will end up adding few workarounds and a person maintaining your code will probably hate you for the rest of his life. Fortunately, with NestedScrollView class this becomes much easier.

Continue reading…

Android – Drawing multiline text on canvas

If you always wanted to know how to draw multiline text on canvas you came to the right place. Meet StaticLayout, your new best friend when it comes to drawing text on canvas.

Continue reading…

Android – Using TextSwitcher to animate text change

Few months ago I had to create a custom Action Bar and one of the problems that came up was changing the title text. I wanted something new and something wild.

Continue reading…