~/talk

From ImageView to Compose: Architecting Image Loading

Talkat droidcon London 2025 · 2025-10-30..10-31· [android, frontend-architecture]
links:none on file
name:Rui He
links:none on file
slides:none on file

Jetpack Compose image loading needs a different architecture: sizing, downsampling, cache keys, prefetching in lists, and scaling semantics require explicit policies rather than implicit ImageView behavior. The team builds a rememberFrescoImagePainter that wraps Fresco drawables with a callback so a drawable→painter bridge triggers only painter redraws, exposes Fresco request/hierarchy builders as lambdas, and leverages the paint modifier to keep layout separate. Results: smoother scrolling, finer-grain invalidation that avoids full recomposition, and production use inside TikTok with benchmarks and fixes for oversized decodes and double crossfades.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32ImageView in Android
  3. 9:06ImageView problems
  4. 14:47Image in Jetpack Compose
  5. 27:11Fresco to Compose case
  6. 40:29Closing and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.