I am a newbie to android, I know this question has already been asked but i couldn\'t get a satisfactory explanation. My doubts are:
If you pass a ViewGroup to it, it will add the inflated View to that ViewGroup. That means, the inflated View will be a child of the passed ViewGroup.
ViewGroup
View
It is irrelevant whether the ViewGroup is made programatically or by an xml file.