What is the relationship between XML and Java in Android?
<p>In android, whats the difference between these 2? I started trying to make apps a few days ago and i can seem to wrap my head around it?</p>

<p>From what i have heard from the tutorial i am following, MaiActivity.java uses Java and Activity_main uses xml language?</p>

<p>Also is activity_main used to code the look of the app and MainActivity is used to code what the things do?</p>

<p>And what are ID's for? Is it just to reference certain buttons between the 2 files?</p>

<p>So basically from what i understand if what i have said above is correct, activity_main codes how the buttons look and gives them ID's, and MainActivity code what the buttons do and use the ID's to code the right button.</p>

<p>IS this correct?</p>