Feb 22, 2016
This is going to be a short post because I’ve seen a lot of custom implementations to provide the well known a few minutes ago labels, which are often hard to maintain and rarely properly localized.
There already is an implementation for this—no, it’s not JodaTime.
Custom Drawables and Animations
Jan 5, 2016
There are many opportunities where the usage of a custom drawable will lead to nice, clean, and reusable results. If you need to display changing text inside an icon or introduce a custom progress indicator like in Modifying the resource image of Progress Bar on Stack Overflow, you can easily do so with custom drawables.
Instrumentation Tests and Localized Screenshots
Dec 12, 2015
Testing is important, and you should be testing.
Testing on Android is still a big issue. Whether you feel that your app isn’t big or popular enough, or just don’t know how to start, there are many reasons why you won’t get involved with tests. But I find that writing testable code (and actual tests) can lead to far better, scalable, and maintainable software.
Animations and Decorations
Nov 18, 2015
Just a quick update to my last post on a little thing I missed out: Animations.
Using RecyclerView with ItemDecorations - A Basic Separator Sample
Nov 10, 2015
tl;dr You can find the sample on GitHub.
I’ve seen many people come up with complicated and bloated solutions to problems that can actually be solved with decorations quite easily. Generally speaking, by using decorations you can, without modifying any code in your adapter
- add a Header / Footer View
- add margins and separators
- set backgrounds
- and more.
Easily added and reused with one line of code.