Master of NestedScroll
summary
Explains concrete nested-scroll solutions for Android: in Jetpack Compose, implement NestedScrollConnection (override onPreScroll/onPostScroll) to consume child scroll (e.g., stop a LazyRow inside a HorizontalPager from triggering parent swipes) and use scrollBehavior with TopAppBar for coordinated collapsing. For Android Views, wrap RecyclerView in a NestedScrollHost or handle onInterceptTouchEvent with touch‑slop and canChildScroll checks; Compose–View interop uses NestedScrollDispatcher and NestedScrollingParent3 when properly wired.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:47Nested scroll basics
- 3:55Nested scroll in Compose
- 8:51Nested scroll connection
- 15:14Nested scroll in Views
- 22:00Parent and child
- 26:17Compose vs Views
- 28:24Compose-Views interop
- 30:50Summary
related talks
42mAdvanced Scrolling Techniques on Android (en)
43mSwitching to Compose? Don’t Rush!
44mAdvanced Scrolling Techniques on Android
49mBuilding an Android UI using declarative programming in Jetpack Compose
33mMigrating to Jetpack Compose - an interop love story
33mListView - Recycle Your Knowledge
28mJetpack Compose Techniques Needed at the Product Level
38mFrom Android View to Jetpack Compose — A Guide to Migrating to Jetpack Compose
