Android Jetpack: Sweetening Kotlin development with Android KTX
summary
Android KTX turns existing Android APIs into concise Kotlin idioms by shipping curated sibling artifacts (now Core-KTX 1.0 Alpha 1 and KTX modules for fragment, navigation, work, SQLite), rewriting trivial extensions to delegate to Java utilities (ColorUtils) and defaulting to inline + reified where it avoids allocations. Extensions are inline unless they allocate; some implementations move upstream into core. A KEEP proposal (now submitted as KEEP-110 annotations) targets annotating Java APIs so Kotlin can treat static methods, defaults and names as true extensions.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 0:38Extension functions
- 2:16Reified
- 3:25Extension function
- 4:54Component operator
- 9:18Core KTX
- 11:50Composite Colors
- 12:43KTX Principles
- 14:15Iterator Extension
- 14:34Inline Modifier
- 16:45Collections
- 18:28Code Golf
- 19:51The Problem
- 22:39Fragment KTX
- 26:52Callin Extensions
- 29:29Java Implementation
- 30:17Non Null Annotation
- 31:01Null Annotation
- 31:21Extension Annotation
- 32:18UpdatePadding
- 33:04Naming
- 34:33Colin Expression
- 35:14Colin Extensions
- 38:16Android Bug Tracker
related talks
37mAndroid KTX: A Dash of Kotlin Makes All the Difference!
43mAndroid Jetpack ❤️ Kotlin: On the road to more wholesome APIs
37mAndroid Jetpack Hearts Kotlin: on the road to more wholesome APIs
41mAdvancing android development with the kotlin language
01h 03mKotlin on Android
42mKotlin First – Taking Full Advantage of Kotlin For Android Development
49mKotlin on Android (en)
49mKotlin: the swift of Android
