Sorry, this should be a basic question, but I’m really wondering on this.
Inflate: I read the book and roughly know how to use it but still don’t understand why we need it.
What I learnt is that Layout can use inflater to add views which is XML file.
But why can’t we just make Layout including all required views?
Fragment: I understand the situation if one screen needs to be divided such as tablet.
But why we should use this for a phone if it doesn’t need to separate the screen?
So, common question is, could you tell me an example which cannot be implemented if it doesn’t use inflater?
Also, one layout with one fragment?