ylliX - Online Advertising Network

How Do You Keep Your Kotlin Code Crystal Clear?

As Kotlin continues to revolutionise the development landscape, effective documentation has become more crucial than ever. That’s where KDoc comes in Kotlin’s powerful documentation tool. In this article, we will dive into the world of KDoc and will explore its basics, best practices and how the Dokka library can take documentation to the next level. […]

Understanding the Coroutine Lifecycle in Kotlin

Diagram from kotlinlang.org Kotlin’s coroutines offer a powerful way to manage concurrency and asynchronous programming. However, to use them effectively, it’s crucial to understand the lifecycle of a coroutine. In this blog post, we’ll explore the coroutine lifecycle, focusing on the states of a coroutine’s Job, how they transition between states, and practical examples to […]

Problem creating a Drawable instance in compose

I need to migrate my old java code that creates a Drawable instance which is a gradient with a starting color in the upper part and a finishing color in the bottom part. It worked perfectly in java, but after migrating the code to kotlin and compose, getDrawable function returns an empty transparent drawable: override […]

Win a Free Ticket to Droidcon Italy!

How to Enter the Lottery🎟️ 👉 Register for the Kotlin Expert training by October 27th, 2024. 👉 Complete your payment by the same date. You’ll automatically be entered into the draw. If you win, you’ll attend Droidcon Italy for free and connect with top Android professionals! Terms & Conditions The draw happens on October 28th, […]

Kodee’s Kotlin Roundup: Exciting News + Special Announcement! | The Kotlin Blog

Kotlin Multiplatform Contest for students and recent graduates Calling all students and recent graduates! The Kotlin Foundation is hosting the Kotlin Multiplatform Contest, and personally, I think this is a plush opportunity to make your creativity shine. Build a cross-platform project using Kotlin Multiplatform and submit it by January 14, 2025, for a chance to […]

Coroutines and Dispatchers

In Android development, coroutines are commonly launched from ViewModel classes using viewModelScope. The typical usage looks like this: viewModelScope.launch {// … implementation} In Android development, coroutines are commonly launched from ViewModel classes using viewModelScope. The typical usage looks like this: viewModelScope.launch {// … implementation} By default, if a dispatcher is not specified, any coroutine launched […]