Tag: 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…
-
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…
-
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…
-
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…
-
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.
-
[HOW TO] Set up Kotlin Source Code & Tests in your Android Apps
After reading a lot of different posts raving about Kotlin, I couldn’t help myself. I had some serious FOMO. In this blog post, I will be looking at getting Kotlin set up in existing Android Apps. What is Kotlin? Kotlin is a statically typed programming language that can be used to write Android Apps. It…