What problem does it solve?
Migrating Android TV applications from the legacy Leanback UI Toolkit, Android Views, and Support Fragments to Jetpack Compose for TV (androidx.tv) involves complex architectural decisions, D-pad focus handling, and media playback modernization that LLMs frequently get wrong.
Core Features & Use Cases
- Component Mapping: Provides a complete mapping table from legacy classes (BrowseSupportFragment, VideoSupportFragment, GuidedStepSupportFragment, ArrayObjectAdapter) to modern Compose equivalents (BrowseScreen, PlaybackScreen, LazyRow).
- D-pad Focus Management: Enforces correct patterns for initial focus with FocusRequester, row focus memory with Modifier.focusRestorer, IME focus chaining, and Back-key interception to avoid focus traps.
- Media3 Playback Modernization: Guides replacement of PlaybackGlue and PlayerView wrappers with Compose PlayerSurface and Media3 transport controls (PlayPauseButton, SeekBackButton, SeekForwardButton).
- Use Case: When asked to migrate a TV app's browse screen from BrowseSupportFragment, the agent produces an immersive LazyColumn of LazyRows with a dynamic hero backdrop, pivot scrolling via BringIntoViewSpec, and proper focus restoration.
Quick Start
Ask your agent to migrate your Android TV app's Leanback browse screen to Jetpack Compose for TV using this skill.