I am starting with development in android apoplications, but not sure about the creation of views.
Which one of the two is more preferable in terms of memory-consumption for creation of views : XML or Java Class ?
Can you please suggest which approach is more memory-friendly either XML or Java classes for creation of view ?
There is ultimately Java behind the xml..
so both are same as creating from Java or using xml.
XML help us to customize
Viewsquickly and drag & drop graphically.The Layout tricks actually works. (For example: Here is an illustration to optimize the memory consumption.)