SlidingPaneLayout

There is no hiding from the fact that foldable devices are here. They pose some new challenges when it comes to app development. One of these is the fact that a foldable device’s form factor changes depending on the folded status. Android supports different form factors by design, so this is quite easy to deal…

Piracy

I never thought I’d have to write this post, and it saddens me that I now have to. I’ve been writing Styling Android for over 10 years, and I’ve posted every week in that time. I suspended posting for 6 weeks due to contractual reasons, and that’s the only break. I wrote about this in…

Ten Years

“One of the building blocks of styling and theming Android apps is understanding drawables”. Thus began the first ever post to Styling Android which was published on 28th March 2011. Which is almost 10 years ago to the day. I believe that Styling Android is the longest-running, actively maintained Android technical blog. An awful lot…

RenderEffect – Desaturate

At the time of writing, March 2021, the initial developer preview of Android 12 has recently arrived. Android 12 will have a design system refresh named Material NEXT, if the many rumours are true. While the details of what this actually means are vague, there are likely to be similarities to other mobile platforms. One…

RenderEffect – Blur

At the time of writing, March 2021, the initial developer preview of Android 12 has recently arrived. Android 12 will have a design system refresh named Material NEXT, if the many rumours are true. While the details of what this actually means are vague, there are likely to be similarities to other mobile platforms. One…

5G Connectivity

Almost exactly one year ago, I published a post on how to monitor changes in connectivity status. Since then, 5G networks have started to become more common. Also, I have found some improvements in how to handle this monitoring. Hence this follow-up post.

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…