Can someone explain the relationship between Java and xml in android app development? | Sololearn: Learn to code for FREE!
0

Can someone explain the relationship between Java and xml in android app development?

Java vs XML

9th Oct 2016, 7:05 PM
Ryan W Blaisdell
Ryan W Blaisdell - avatar
3 Answers
+ 3
XML is used to describe something...for example layouts or animations. You can also define values for your app. Java is used to write the whole logic of your app...like what happens when you click a button and so on....
26th Oct 2016, 7:46 PM
FreakManMega
0
XML is used for layout while java is for the activity
9th Oct 2016, 9:04 PM
jerry
jerry - avatar
0
XML is used to construct the layout that is consisted of elements such as buttons, images, etc. While Java is used for programming, writing the logic of the app and to control the elements of the layout that is created using XML.
3rd Nov 2016, 11:25 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar