I’ve created a new Android project using the “Empty Activity” template, which I understand is typically used for Jetpack Compose UI development. However, I’ve noticed that my friend has successfully used XML layout files with an Empty Activity and Java code in their project.
This is link to GitHub that my friend’s app GitHub
Is it possible to use XML layouts with an Empty Activity? If so, what are the implications and potential drawbacks compared to using the “Empty Views Activity” template? Are there any specific configurations or workarounds required to make this approach work?
I’m curious about the advantages and disadvantages of using XML with an Empty Activity versus the traditional approach. Any insights or experiences would be greatly appreciated.