0

I know it's possible to add ComposeView inside XML view, but is it possible to add XML on top of ComposeView. The problem is I have pre-existing fragments on the main layout but, now I want to make my main layout screen with compose without changing the XML fragment screens is it possible?

subrata sharma
  • 344
  • 4
  • 17
  • 1
    Does this answer your question? [Android: Jetpack Compose and XML in Activity](https://stackoverflow.com/questions/65648904/android-jetpack-compose-and-xml-in-activity) – Phil Dukhov Dec 14 '21 at 13:23
  • no, this one says I can add compose view inside XML, which I know. but I want the opposite. I want to display the XML view inside compose view. – subrata sharma Dec 14 '21 at 14:18
  • 2
    You haven't read the second part of the answer which contains "If you want the opposite, i.e. to use an XML file in your compose, you can use this:" – Phil Dukhov Dec 14 '21 at 14:53

0 Answers0