You can also include a ComposeView directly in a fragment if your full screen is built with Compose, which lets you avoid using an XML layout file entirely .
Read moreWhat is jetpack compose used for?
Jetpack Compose is Android’s modern toolkit for building native UI . It simplifies and accelerates UI development on Android. Quickly bring your app to life with less code, powerful tools, and intuitive Kotlin APIs.
Read moreWhy is jetpack compose better than XML?
Compose allows you to do more with less code , compared to using the Android View system: Buttons, lists or animation – whatever you need to build, now there’s less code to write. Here’s what some of our partners say: “For the same Button class it [the code] was 10x of magnitude smaller.” (Twitter)
Read more