title: Why is XML used for the creation of UI layouts in Android?
body: <p>I would like to know why we use <strong>XML for the creating user interface layouts in Android</strong>. I know that it decouples the business logic from the design but what is the significance of the XML other than that?</p>
  
  <p>Also I would like to know the <strong>significance of the auto-generated <code>R.java</code> file</strong> in this. All I know that it is generated according to the changes in the resources and that it helps us to access the widgets and resources through their IDs.</p>
  
  <p>It would be great if someone could give a clear idea on these two aspects.</p>