https://kotlinlang.org logo
Title
a

Android75

03/24/2022, 7:11 AM
I developed a QRCode scanner, it’s a scanner that add in a container in my old xml layout.. how can i used it in compose ? So how ca i add a Fragment inside a compose layout ?
any help ? 😞
r

ritesh

03/24/2022, 9:50 AM
a

Android75

03/24/2022, 10:24 AM
i know but there isn’t a solution for me
r

ritesh

03/24/2022, 2:21 PM
What have you tried so far and what issue are you facing? If you could post the code snippet, that helps
j

julioromano

03/30/2022, 2:27 PM
So how ca i add a Fragment inside a compose layout
Short answer: you can’t. Interop only allows you to: Put a Composable inside a
View
hierarchy (using
ComposeView
). OR Put a
View
inside a Composable hierarchy (using the
AndroidView
composable).