Categories
android studio ui

Getting Started with the Motion Editor in Android Studio 4.0

Android Studio 4.0 has been released in the stable channel! 🥳 What does this mean for us? Well, the new Motion Editor is in Android Studio 4.0 and if you are someone who prefers to use the stable version of tooling, this is probably your first look at the Motion Editor. In this blog post, […]

Categories
android studio ui

AsyncAndroid: Getting Started with MotionLayout

Wow, what a weird time to be alive, huh? I’m writing this on Day 29 of the lockdown in South Africa due to the COVID-19 pandemic. I’m not sure I have the right words to address the current situation, nor the expertise to talk about it. However, I am good at talking about Android and […]

Categories
android ui

Dark Mode Musings: Beware of the Context 🌗

I’ve been working on getting Dark Mode in our app fully supported and I stumbled upon an interesting finding: The Application#applicationContext does not keep information about the theme that you have set via AppCompatDelegate.setDefaultNightMode(), only a View or Activity context has this information stored.  After reading through Chris Banes’ articles and watching some great talks […]

Categories
android ui

Android: Using Physics-based Animations in Custom Views (SpringAnimation)

Learn how to use physics-based animations in a Custom View implementation for natural looking animations in your app. You’ve used all the standard Android animation techniques, but you find that they sometimes just don’t give you that extra sparkle you are looking for. You’ve wondered how to get more natural looking animations and had no luck […]

Categories
android kotlin ui

Android Canvas APIs with Kotlin and KTX

Learn how to use the Android KTX extension functions to clean up Canvas drawing code Have you ever wanted to write a Custom View on Android but you were too afraid to deal with X, Y translations on a Canvas object?  Well, working with them got a whole lot easier when using Kotlin and the Android […]