Supporting stylus input on Android using Jetpack Ink
summary
Jetpack Ink provides low latency inking with modular pieces for strokes, brush and rendering plus geometry authoring and storage and is used by Pixel circle to search and Google Docs. The library at 1.0.0-alpha06 gives a Compose drawing composable that handles in‑flight vs finished strokes, exposes stock brushes like pressure pen latest and a highlighter, and the sample app implements color and tool selectors, rotation-safe short‑term persistence, and works well though long‑term persistence and docs are still sparse.
AI-written summary · about
chapters (11)
- 0:00Stylus support intro
- 3:40Why stylus matters
- 5:05Jetpack Ink API overview
- 7:09Jetpack Ink modules
- 9:34Drawing surface setup
- 12:49Brush properties config
- 15:24Stroke handling
- 16:50Ink composable rendering
- 18:18Library feedback
- 19:23Next steps and resources
- 20:46Q&A
related talks
05mAdding Stylus support to your Android app
05mAdding Stylus support to your Android app
01h 18mArt of Jetpack Compose
36mPractical implementations of powerful UI expressions using Jetpack Compose
32mJetpack Compose for Games & Animations
16mAndroid Graphics
40mExploration of Touch & Input in Jetpack Compose
01h 12mJetpack Compose over inheritance
