TechForge

7th February 2018

Share this story:

Tags:

Categories::

Android KTX is Google’s attempt to make writing code for their platform in Kotlin easier and more concise.

Ever since Google announced first-party support for the Kotlin programming language, many developers have been experimenting with it. As expected, when developers are getting to grips with a new language, this has led to some messy code.

Kotlin itself is designed to be friendly and easy to pick up, especially when in comparison to Java. However, that doesn’t mean there’s not room for improvement.

KTX provides an API layer on top of both Android framework and Support Library to make writing Kotlin code more natural.

In the announcement post, Google provides the following example of translating the difference between two paths by 100px in standard Kotlin vs with Android KTX:

The API is currently in preview but the portion of Android KTX that covers the Android framework is now available in Google’s GitHub repo.

What are your thoughts on Android KTX? Let us know in the comments.

About the Author

Senior Editor

Ryan Daws is a senior editor at TechForge Media with over a decade of experience in weaving narratives and dissecting complex topics. His articles and interviews with industry leaders have earned him recognition as a key tech influencer from numerous organisations. Under his leadership, publications have been praised by analyst firms for their excellence and performance. Connect with him on X, Mastodon, Bluesky, Threads, and/or LinkedIn.

Related

16th September 2026

15th September 2026

11th September 2026

11th September 2026

Join our Community

Subscribe now to get all our premium content and latest tech news delivered straight to your inbox

Popular

20164 view(s)
11640 view(s)
10295 view(s)
6895 view(s)

Subscribe

All our premium content and latest tech news delivered straight to your inbox

This field is for validation purposes and should be left unchanged.