I’ve looked at so many posts on what inflation is for android and I still don’t get it. Can someone describe it in great detail what it is and why I would need it? They say it creates an object out of XML code and can be used or something. I understand almost everything else, but this doesn’t make sense to me.
Share
basically to make your logic part different from your UI part the concept of XML came.
1- It is easy and very clear to create the UI in XML.
2- By this isolation we have option to create different UI for land/portrait/small/normal/larger modes……
at run time the XML just get parsed and created the object from that.