https://kotlinlang.org logo
#compose
Title
# compose
d

Derek Alves

03/15/2023, 10:20 PM
guys, is it possible to call a navigation xml graph inside jetpack compose with AndroidViewBinding? when I call a fragment directly it works normally, but when I try to use FragmentContainerView I get this error FragmentContainerView must be within a FragmentActivity
c

chanjungskim

03/16/2023, 3:57 AM
Well, why do you try that? Jetpack compose doesn't really need Fragments. And what compose navigation does is navigating between composable functions. But if you use nav_graph.xml for example, it uses fragments.
6 Views