Hi,

You know, the xml code for the UI is in its standalone/own file and when the MainActivity.java runs

setContentView(R.layout.activity_main);

tells where the code for the layout is.

Can we do something similar for the layout we have created in Java so that it will look cleaner?