I'm going through Android Studio(in Kotlin) codelabs created by Google. One thing gets me confused when they write something like: "you need to inflate the layout and bind individual views."
When I google what inflate means, I get answers like:
- When you write an XML layout, it will be inflated by the Android OS which basically means that it will be rendered by creating view object in memory.
- Inflating is the process of adding a view (. xml) to activity on runtime.
- Layout inflater just reads the XML file and creates the specified views via reflection in top-down order
Okay, so the points above give slightly different answers. I understand from the explanations above that the .xml layout is rendered to create views. But then, why is it called inflating? Does the .xml inflate like a balloon into a view, and the balloon-like .xml is saved in memory somehow?
I can't find a good visual explanation, except code pieces on the internet. But code pieces, in this case, are not making this more sense to me.
Links to the bullet points: