Categories
android kotlin

Lessons Learnt with Kotlin: Using inline classes 👩‍🔬

What is an inline class? 🧐 An inline class is a special type of class defined in Kotlin that only has one property. At runtime, the compiler will “inline” the property where it was used. This is similar to inline functions, where the compiler inserts the contents of the function into where it was called. Example […]

Categories
android kotlin

Over ❤️ Kotlin – How we’ve used Kotlin to build our design app

I recently presented this talk at Kotlin Everywhere South Africa as the keynote for the event. I really enjoyed preparing this talk as it spoke about how we use Kotlin, mistakes we’ve made along the way and our opinion on how we decide to use certain features.  Talk Description: Over the past year and a […]

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 […]

Categories
Conferences

Google I/O 2017 – Highlights for the Android Developer

This year’s Google I/O 2017 was an exciting few days for developers. After last year’s complaints of long queues and no shade, Google listened and delivered a pre-booking system that ensured attendees weren’t queuing for hours. They also provided big bottles of sunscreen and more shade.