Kotlin & Wear OS
summary
Kotlin DSL reduces the boilerplate for a Wear OS watch face from 600 lines to 15 by replacing manual painting and ambient-mode plumbing with a declarative nested-lambda DSL that is type-checked and gives IDE hints. The heavy lifting remains in an interpreter/helper class, but the DSL produces a working analog watch face (hands, colors, background) and ships. A 15-minute codelab and source show the exact Kotlin constructs and how the DSL maps to runtime rendering.
AI-written summary · about
chapters (6)
- 0:00Introduction to watch faces
- 0:41Kotlin and DSL overview
- 1:13Understanding DSL benefits
- 2:05DSL syntax and structures
- 2:50Implementing the watch face
- 4:04Code lab and conclusion
related talks
30mBuild an Android Wear Watch Face — Adding Small Bits of Info to the Dial
30mKotlin DSLs
49mBootstrapping Multiplatform Development and Android Wear
49mKotlin: the swift of Android
44mCreate engaging apps for Wear OS
40mKotlin DSLs in 42 minutes
32mDeveloping Wear OS Apps with Jetpack Compose
01h 03mKotlin on Android
