Activity Result Contract – The Basics

As regular readers of Styling Android will know, I generally publish sample code projects along with each series of articles. Whenever the code requires runtime permissions my heart sinks because I know that I must add a chunk of boilerplate. This not only means extra work for me, but it can also make the sample…

AnimatedIcons: Visibility V3

There is a nice micro-animation library at useanimations.com which contains some useful icon animations. These are all free to use and downloadable at Lottie animations. For those that already use Lottie they can use these animations as-is. It may not be possible to use them in apps which don’t use Lottie, or if there’s no designer that…

Broken Material Theme

When is a Material theme not a Material theme? That may sound like the first line of a joke, but it is actually a real problem I faced recently. It caused me much noggin scratching until I chanced upon the cause. And you’ll have to wait until the end of the article for the punch…

Currency Converter: Improvements

In the previous series, we looked at the overall design of a personal project that I put together. The app obtains the balance from my Transferwise Borderless account (in USD) plus the current exchange rates. It displays this in an App Widget which the user can place on the home screen. While the app works,…

Currency Converter: UI

At the end of 2020, I published a post on displaying currency conversion rates on a LaMetric Time smart clock. That solution only worked when I was working in my home office because that’s where the LaMetric Time lives. So I decided to build something similar on Android for other times. The app I produced…

CurrencyConverter: Not Cutting Corners

At the end of 2020, I published a post on displaying currency conversion rates on a LaMetric Time smart clock. That solution only worked when I was working in my home office because that’s where the LaMetric Time lives. So I decided to build something similar on Android for other times. The app I produced…

CurrencyConverter: Cutting Corners

At the end of 2020, I published a post on displaying currency conversion rates on a LaMetric Time smart clock. That solution only worked when I was working in my home office because that’s where the LaMetric Time lives. So I decided to build something similar on Android for other times. The app I produced…

Hacky New Year

Sometimes all we need is a dirty hack. I’m not talking about production apps, but personal projects where properly engineering things gains me little value. This article has no content or techniques specific to Android, but there will be a follow-up post which does.

MaterialTimePicker

Material Design Components version 1.3.0-alpha02 for Android introduced a new MaterialTimePicker component. It is an easy to use component, but, at the time of writing (mid-December 2020), there is one gotcha. In this article we’ll take a look at how to use it. We’ll also look at the gotcha with an easy workaround.