jetpack-compose
Jetpack Compose UI toolkit for Android
Fix unresponsiveness in custom Jetpack Compose PlayerControls with ExoPlayer. Reduce recompositions from state updates, optimize pointerInput gestures, cache Canvas drawing for smooth playback and custom seekbars.
Fix IconButton misalignment in Jetpack Compose rows despite Modifier.weight on inner Icon. Align perfectly with Text and Switch in grids by weighting the button and using fillMaxSize. Full code examples and tips.
Resolve NavHostController error in Jetpack Compose navigation with correct imports and dependency configuration.
Understand the difference between px, dp (dip), and sp units in Android UI development. Learn when to use android dp for layouts, android sp for text, and px for pixels, with conversion formulas and best practices.