• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Can someone explain the whole xml thing to me?

  • Thread starter Thread starter capoeirista13
  • Start date Start date
C

capoeirista13

Guest
Hi, I'm new to using Android (just started programming today, read up on the dev guide a bit yesterday). I've previously programmed in C/C++/MATLAB/Java. The thing is, I'm thoroughly confused by Android. See the thing that's confusing me so much is this XML business. I went through and did the Hello World tutorial and understood it up to the XML part. It seems like you can code everything in Eclipse OR code everything using a combination of main.xml and string.xml files. Is this correct?
 
String.xml file is for shorcuts for words, it's easier for the changes
for example , you put the version number there , when you release a new version , you just change the it from there , no need to open the code and look for every place you typed the version number (and it's easier when you get used to it)

main.xml is for the interface, android's way of coding is, interface done by xml and coding by java, so it'll separate them and make stuff neater
 
Back
Top Bottom