Android Jetpack Compose
Applies production-ready Jetpack Compose patterns for effect handling, state hoisting, list optimizations, and recomposition lifecycle management.
Android Jetpack Compose provides domain-specific best practices and strict mechanics for building high-performance modern Android user interfaces. It enforces correct lifecycle effect handling with LaunchedEffect, DisposableEffect, and rememberUpdatedState, robust state retention across recompositions and process death, recomposition skipping through parameter stability and lambda-based modifiers, LazyList item recycling, and leak-free AndroidView interop. Use this skill when authoring or refactoring Jetpack Compose code to prevent silent UI glitches, frame drops, and background battery drains.
主要功能
01Prevents text input character drops with dedicated TextFieldState management
02Enforces correct side-effect lifecycles with LaunchedEffect, rememberUpdatedState, and DisposableEffect cleanups
03Optimizes recomposition performance using stability guidelines, derivedStateOf, and deferred layout/draw modifiers
04Ensures safe AndroidView lifecycle synchronization to prevent background resource leaks
050 GitHub stars
06Mandates stable keys and contentTypes for efficient LazyList scrolling and item recycling
使用场景
01Diagnosing and eliminating unnecessary recompositions and frame jank in complex scrolling lists
02Authoring or refactoring Jetpack Compose screen architectures and reusable UI components
03Integrating lifecycle-sensitive legacy Views such as MapView, VideoView, or Camera previews into Compose