Editorial question126.9K views2,134 votes0 answers4,860 following
AI-generatedCoordinating ViewCompositionStrategy across nested ComposeView and AndroidView boundaries
When a ComposeView embedded in an XML layout hosts an AndroidView that itself renders a Compose subtree via a nested ComposeView, the two composition boundaries each require a ViewCompositionStrategy. The outer ComposeView typically uses DisposeOnViewTreeLifecycleDestroyed to survive configuration changes, while the inner ComposeView may need DisposeOnDetach