TV App Development that Puts No One in a Bind — Focus Control Lessons from Compose Internals
summary
Explains how Compose for TV handles focus movement and automatic scrolling for Android TV, contrasting it with Leanback and showing where Compose’s declarative Composables still run TV-specific internal logic. Covers the internal focus-and-scroll mechanisms, key concepts to customize behavior (e.g., Modifier.verticalScroll vs LazyColumn userScrollEnabled), and concrete implementation examples to achieve natural remote-driven UX and reduce debugging time.
AI-written summary · about
chapters (11)
- 0:00TV app challenges
- 3:55Focus control in Compose4TV
- 5:39Default focus control
- 9:54Automatic vs manual focus
- 11:18Focus groups
- 13:49Saving focus position
- 20:31Manual focus: FocusProperties
- 27:45Scroll control in TV apps
- 31:21BringIntoViewSpec for scroll
- 36:22Migrating to Compose4TV
- 39:12Summary
related talks
32mKicking back with Compose for Android TV
23mCrash course to Compose for TV
40mAlso develop for TVs (AppleTV and AndroidTV)
22mModern Android Development #AskAndroid
36mNavigation focus in 2024: Supporting keyboard navigation with Compose
43mSwitching to Compose? Don’t Rush!
49mBuilding an Android UI using declarative programming in Jetpack Compose
37mCreating Engaging Android TV and Fire TV Apps with Native and Cross-Platform Tools
